All Products
Search
Document Center

:Migrate Spring Cloud applications from an EDAS registry to an MSE Nacos instance

更新时间:Jul 05, 2023

Microservices Engine (MSE) provides managed Nacos instances. The managed Nacos instances provide more powerful and stable features than open source Nacos instances. You do not need to maintain Nacos instances in MSE. This allows you to focus on your business. You can also obtain expert support if you use MSE Nacos Professional Edition. This topic describes how to smoothly migrate Spring Cloud applications from an Enterprise Distributed Application Service (EDAS) registry to an MSE Nacos instance.

Prerequisites

Background information

In this topic, a set of applications deployed on Alibaba Cloud EDAS is used to describe how to migrate applications. If you understand the scenarios of application migration from an EDAS registry, you can implement the solution that is described in Migration solutions.

Deploy the consumer and provider applications in the EDAS console. For more information about how to deploy applications, see Use images to deploy microservice-oriented applications in Kubernetes clusters.

Migration solutions

  1. Log on to the ACK console.

  2. In the left-side navigation pane of the ACK console, click Clusters. On the Clusters page, find the cluster in which your application is deployed and click the cluster name.
  3. In the left-side navigation pane of the Cluster Information page, choose Workloads > Deployments. On the Deployments page, select a namespace from the Namespace drop-down list.
  4. Find the application that you want to manage and click Edit in the Actions column.
  5. In the Environment Variable section of the Edit page, click Add, add the environment variables that are described in the following table, and then click Update.

    The following table describes the added environment variables.

    TypeVariable KeyValue/ValueFrom
    Custom environment variableenable_multi_nacostrue
    Custom environment variableadditional_nacos_addressmse-9xxxxx-p.nacos-ans.mse.aliyuncs.com:8848
    Note This variable value is the endpoint of the MSE Nacos instance.
    Custom environment variableadditional_nacos_namespacee5bdc7e1-xxxx-4e2b-906d-b47b8efeee8b
    Note Optional. If this variable is not configured, the default namespace of the MSE Nacos instance is used.

Verify the result

Verify the service registration result.

Log on to the MSE console and view the information about the instance with which the services are registered.

Service call result

In this example, the service consumer application is used to call the service provider application. You can enter the public endpoint of the consumer-slb service in the browser to view the service call result.

两个鬼故事古镇民宿起名133133粮库起名大全测店铺起名打分鼠年起什么名比较好起名广字辈男孩名子宫略尤四姐日本卡一卡二新区李姓虎年宝宝起名i3-2120皓字取名起名大全寓意悬疑推理小说男孩起名缺金缺火食品公司起名大全参照美容生活馆起名大全玉蒲团之玉女心一骑当千全集郑氏起人名600斤男子被起重机吊离居所以:广:字起名字男孩钱学森电影下载姜字取名起名大全男名字大全楚辞女起名诗经火烧岛电影历届欧洲杯决赛比分龙婿叶辰萧初然全文免费阅读猪小儿起个小名简童沈修瑾小说免费阅读全文几号开学痴情司少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

两个鬼故事 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化