首页|面向智能制造的微服务聚类与选择方法

面向智能制造的微服务聚类与选择方法

扫码查看
智能制造要求工业软件能够实现敏捷开发,对工业软件应用微服务架构是当下重要的研究方向.为了提高开发效率,需要将微服务形式的功能组件发布在互联网中并构建微服务库进行管理,供用户根据需求挑选.面对用户 日益复杂的业务需求,需要微服务库能够将其所包含的大量微服务进行组合来拓展所能实现的功能.针对服务组合过程中的检索和选择2个环节,分别设计了基于微服务的功能需求与非功能需求的服务聚类和服务选择算法,在微服务库中选出最优的微服务组合提供给客户.实验结果表明,所提出的聚类与组合方法取得了良好的效果,提高了用户的满意度并实现了微服务的高效利用.
Clustering and selection method of microservices for intelligent manufacturing
[Objective]Intelligent manufacturing requires the agile development of industrial software,and microservices architecture for industrial software application is an important research direction at present.To improve developmental efficiency of industrial software,functional components in the form of microservices must be published on the internet,and a microservices library needs to be built for management,enabling users to choose according to their needs.To meet the demands of the increasingly complex business needs of users,the microservices library must efficiently combine numerous contained microservices to expand achievable functions.Based on the binding mechanism between the registry and microservices library,the quality of the two links of retrieval and selection in the microservices combination significantly impacts user experience.[Methods]In the process of service retrieval,a service clustering algorithm based on Sentence BERT and SOM(SBERT-SOM-k)is proposed to efficiently find a group of microservices that meet specific functional requirements of the microservices library.This method converts microservices into a text vector through Sentence BERT,mapping them to the output layer nodes of SOM.The iterated weight vector represents these output layer nodes,which can effectively improve the disadvantage of the k-means algorithm that is sensitive to noise and outliers.Because of the absence of a special microservices set related to industrial software at present,the experiment uses the open web service test dataset OWLS-TC4 to compare SBERT-SOM-k with three clustering algorithms:SBERT-k,LDA-k,and TFIDF-k and uses three indicators of accuracy,recall,and F-measure to evaluate the performance of the algorithm.In the service selection phase,to further select the optimal combination of microservices,nonfunctional requirements,such as availability,reliability,and response time,are considered as quality of service(QoS)indicators,which transformed into a multiconstraint single-objective optimization problem based on QoS.Furthermore,an improved genetic algorithm is proposed,which is redesigned in terms of encoding,crossover,mutation,selection,and constraint punishment.The improved genetic algorithm is used to achieve stable solutions for multiconstraint single-objective optimization problems.The experiment used QWS2.0,a real web service dataset that exists on the internet,to compare the number of iterations and fitness values of the improved genetic algorithm(IGA),cross unimproved but constrained genetic algorithm(NICGA),and cross unconstrained improved genetic algorithm(NICCGA)for obtaining the optimal solution under different task node numbers.[Results]The results of service clustering experiments show that the average accuracy of different clustering algorithms is the same.However,SBERT-SOM-k still has significant advantages over SBERT-k,LDA-k,and TF-IDF-k,with the average recall rates increased by 29.56%,19.36%,and 31.70%,and the corresponding average F-measure increased by 22.41%,13.77%,and 25.33%,respectively.Additionally,IGA can improve the optimization speed and quality of the service composition,effectively preventing premature convergence.[Conclusions]The proposed clustering and selection method has achieved good results.It can rapidly select microservices from the microservices library,meeting the needs of users.Furthermore,integrating these microservices into an industrial software system registry based on the microservices architecture will enhance user satisfaction and help to realize the efficient use of microservices.

intelligent manufacturingmicroservicesservice clusteringservice selection

王立平、史慧杰、王冬

展开 >

清华大学机械工程系,北京 100084

电子科技大学机械与电气工程学院,成都 611731

智能制造 微服务 服务聚类 服务选择

国家重点研发计划

2020YFB1712303

2024

清华大学学报(自然科学版)
清华大学

清华大学学报(自然科学版)

CSTPCD北大核心
影响因子:0.586
ISSN:1000-0054
年,卷(期):2024.64(1)
  • 4