当前位置:网站首页>Persistence of Nacos
Persistence of Nacos
2022-07-03 21:22:00 【Wh 789】
In this article Nacos The persistence of
List of articles
summary

The above figure is a screenshot of the home page , It has been clearly stated Nacos Of 2 A core function :
- Service discovery
- Configuration Management
Nacos The persistence of
There is no need for the registry to persist data to the database , It can be persisted to the local hard disk . The distributed configuration center will persist the data to the local embedded database by default .
- By default , The data of the distributed configuration center is stored locally data Under the table of contents .
- If you don't cluster , Once down, the entire configuration center cannot be used .
- If we do clustering , The synchronization of data cannot be guaranteed .
- So the data should be stored in a unified and shared database .
stay 0.7 Before the release , In stand-alone mode nacos Use embedded database to store data , It is not convenient to observe the basic situation of data storage .0.7 Support for mysql Data source capabilities , Specific operation steps :
- mount this database , Version for :5.6.5+
- initialization mysql database , Database initialization file :nacos-mysql.sql
- modify conf/application.properties file , Increase support mysql Data source configuration ( Currently only supported mysql), add to mysql Data sources url、 User name and password .
spring.datasource.platform=mysql
db.num=1
db.url.0=jdbc:mysql://127.0.0.1:3306/nacos?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true
db.user=root
db.password=root
Tips:
A、 If there is data in the original memory , After using the database , The data in the database will prevail , The data in memory is not displayed .
B、 The registry will not be put into the database , It is necessary to put the configuration center into the database .
This paper summarizes
This article explains in detail nocos As the content knowledge of configuration center .
边栏推荐
- treevalue——Master Nested Data Like Tensor
- Rhcsa third day notes
- Is it OK for fresh students to change careers to do software testing? The senior answered with his own experience
- Service discovery and load balancing mechanism -service
- 90 後,辭職創業,說要卷死雲數據庫
- MySQL——索引
- Sort out several network request methods of JS -- get rid of callback hell
- No more! Technical team members resign collectively
- Getting started with postman -- environment variables and global variables
- MySQL——数据库备份
猜你喜欢

使用dnSpy对无源码EXE或DLL进行反编译并且修改

SQL injection - Fundamentals of SQL database operation

运维各常用命令总结

Summary of common operation and maintenance commands

What should the future of the Internet be like when Silicon Valley employees flee the big factory and rush to Web3| Footprint Analytics

Leetcode daily question 540 A single element in an ordered array Valentine's Day special article looking for a single dog in a pile of lovers ~ the clown is myself

Monkey/ auto traverse test, integrate screen recording requirements
![[vulnhub shooting range] impulse: lupinone](/img/27/b92eeceefd1c71f19d926bdd1eee8b.jpg)
[vulnhub shooting range] impulse: lupinone

leetcode-540. A single element in an ordered array

Qt6 QML Book/Qt Quick 3D/基础知识
随机推荐
flink sql-client 退出,表就会被清空怎么办?
Global and Chinese market of recycled yarn 2022-2028: Research Report on technology, participants, trends, market size and share
Ask and answer: dispel your doubts about the virtual function mechanism
TiDB 之 TiCDC6.0 初体验
The post-90s resigned and started a business, saying they would kill cloud database
Link aggregation based on team mechanism
Mysql database ----- common commands of database (based on database)
Getting started with postman -- environment variables and global variables
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
Global and Chinese market of AC induction motors 2022-2028: Research Report on technology, participants, trends, market size and share
[Yugong series] go teaching course 002 go language environment installation in July 2022
Goodbye 2021, how do programmers go to the top of the disdain chain?
Kernel symbol table
Global and Chinese market of gallic acid 2022-2028: Research Report on technology, participants, trends, market size and share
Let me ask you a question. Have you ever used the asynchronous io of Flink SQL to associate dimension tables in MySQL? I set various settings according to the official website
Inventory 2021 | yunyuansheng embracing the road
Compilation Principle -- syntax analysis
9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar
XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
Qualcomm platform WiFi -- P2P issue