《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 通信與網(wǎng)絡(luò) > 設(shè)計應(yīng)用 > 基于LSTM模型的智能服務(wù)治理方案研究與實踐
基于LSTM模型的智能服務(wù)治理方案研究與實踐
電子技術(shù)應(yīng)用
李雄清1,2,楊彭程3,宋欣卉1,2,李佳琦3,李永1,2,洪志鵬3
1.中國民航信息網(wǎng)絡(luò)股份有限公司;2.民航旅客服務(wù)智能化應(yīng)用技術(shù)重點實驗室;3.沈陽民航東北凱亞有限公司
摘要: 為解決航空公司網(wǎng)站在訪問量大幅波動時容易導(dǎo)致系統(tǒng)異常、難以快速進(jìn)行治理的問題,以Spring Cloud微服務(wù)治理框架為基礎(chǔ),融入長短期記憶(LSTM)模型對系統(tǒng)指標(biāo)進(jìn)行分析與預(yù)測,結(jié)合云原生架構(gòu),提出了一種基于LSTM模型的智能服務(wù)治理方案。利用LSTM對歷史指標(biāo)數(shù)據(jù)進(jìn)行訓(xùn)練并輸出預(yù)測模型,實現(xiàn)對于指標(biāo)的趨勢預(yù)測;結(jié)合云原生基礎(chǔ)設(shè)施,生成基于預(yù)測結(jié)果的主動式水平容器組自動伸縮器,實現(xiàn)資源預(yù)伸縮;根據(jù)指標(biāo)預(yù)測結(jié)果與變化趨勢自動下發(fā)與回收治理策略,實現(xiàn)智能化的流量治理。實踐表明,該方案能根據(jù)模型預(yù)測結(jié)果提前做好資源擴(kuò)縮容與服務(wù)治理,有效規(guī)避系統(tǒng)風(fēng)險。
中圖分類號:TP311.5 文獻(xiàn)標(biāo)志碼:A DOI: 10.16157/j.issn.0258-7998.246037
中文引用格式: 李雄清,楊彭程,宋欣卉,等. 基于LSTM模型的智能服務(wù)治理方案研究與實踐[J]. 電子技術(shù)應(yīng)用,2025,51(9):73-78.
英文引用格式: Li Xiongqing,Yang Pengcheng,Song Xinhui,et al. Research and practice of intelligent service governance scheme based on LSTM model[J]. Application of Electronic Technique,2025,51(9):73-78.
Research and practice of intelligent service governance scheme based on LSTM model
Li Xiongqing1,2,Yang Pengcheng3,Song Xinhui1,2,Li Jiaqi3,Li Yong1,2,Hong Zhipeng3
1.TravelSky Technology Limited;2.Key Laboratory of Intelligent Passenger Service of Civil Aviation;3.Shenyang Civil Aviation Northeast Kaiya Co
Abstract: In order to solve the problem that the airline's website is easy to cause system anomalies and difficult to manage quickly when the number of visitors fluctuates greatly, this paper proposes an intelligent service governance Scheme based on Long Short Term Memory (LSTM) model, which is dased on SpringCloud microservice governance framework, incorporates LSTM model to analyze and predict the system metrics, and combines the Cloud-Native architecture. Using LSTM to train and output the prediction model for historical index data, it realizes the trend prediction of indexes; combining with Cloud-Native infrastructure, it generates active horizontal container group auto scaler based on the prediction results, realizing the pre-scaling of basic resources; according to the index prediction results and the change trend, it automatically sends out and recycles the management policy, realizing intelligent traffic management. Practice has shown that this scheme can effectively mitigate system risks by preparing for resource scaling and service management in advance based on model prediction results.
Key words : intelligence;service governance;elastic scaling;fusion limiting;trend prediction

引言

隨著信息技術(shù)的快速發(fā)展,微服務(wù)架構(gòu)與云原生技術(shù)已成為構(gòu)建現(xiàn)代應(yīng)用系統(tǒng)的主流選擇,越來越多的企業(yè)選擇將應(yīng)用微服務(wù)化后部署在云上,加速邁入云原生時代[1]。其中,谷歌公司推出的Kubernetes[2]容器集群管理系統(tǒng)戰(zhàn)勝了Swarm和Apache Mesos成為容器集群管理的事實標(biāo)準(zhǔn)[3]。

在云原生架構(gòu)中,彈性伸縮技術(shù)是保證服務(wù)高可用性和資源優(yōu)化的關(guān)鍵。Kubernetes提供的水平Pod自動縮放器[4](Horizontal Pod Autoscaler, HPA)逐漸成為云原生下的重要工具。通過無狀態(tài)性[5]應(yīng)用設(shè)計和HPA可以實現(xiàn)在高負(fù)載的情況下,服務(wù)器資源達(dá)到閾值時,程序自動橫向擴(kuò)展Pod的能力。

微服務(wù)架構(gòu)下的服務(wù)治理是一系列用于管理和控制服務(wù)的策略和措施,用于保證業(yè)務(wù)的連續(xù)性和穩(wěn)定性。其中阿里巴巴作為服務(wù)治理領(lǐng)域的先行者,推出了Spring Cloud Alibaba解決方案,該方案基于Spring Cloud微服務(wù)生態(tài),集成了Nacos、Sentinel等組件,為服務(wù)治理提供了全面的技術(shù)支持。Sentinel組件通過實時監(jiān)控、流量控制和熔斷降級等手段實現(xiàn)了對微服務(wù)的高效治理。


本文詳細(xì)內(nèi)容請下載:

http://ihrv.cn/resource/share/2000006691


作者信息:

李雄清1,2,楊彭程3,宋欣卉1,2,李佳琦3,李永1,2,洪志鵬3

(1.中國民航信息網(wǎng)絡(luò)股份有限公司,北京 101318;

2.民航旅客服務(wù)智能化應(yīng)用技術(shù)重點實驗室,北京 101318;

3.沈陽民航東北凱亞有限公司,遼寧 沈陽 110168)


Magazine.Subscription.jpg

此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。