当前位置:网站首页>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 .
边栏推荐
- Notes on MySQL related knowledge points (startup, index)
- QT6 QML book/qt quick 3d/ Basics
- Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
- Analyse de REF nerf
- 运维各常用命令总结
- 电子科技大学|强化学习中有效利用的聚类经验回放
- Idea shortcut word operation
- Transformer structure analysis and the principle of blocks in it
- Is flush account opening and registration safe and reliable? Is there any risk?
- 2022-2-14 acwing1027 grid access
猜你喜欢

MySQL——索引

MySQL——idea连接MySQL

Reinforcement learning - learning notes 1 | basic concepts

MySQL - database backup

Summary of common operation and maintenance commands

不同业务场景该如何选择缓存的读写策略?

MySQL——JDBC

Redis data migration (II)

2022 safety officer-c certificate examination and safety officer-c certificate registration examination

常用sql集合
随机推荐
Sort out several network request methods of JS -- get rid of callback hell
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data
Study diary: February 14th, 2022
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]
Visiontransformer (I) -- embedded patched and word embedded
[secretly kill little buddy pytorch20 days -day02- example of image data modeling process]
Set, weakset, map, weakmap in ES6
Qualcomm platform WiFi update disconnect end open event
JVM JNI and PVM pybind11 mass data transmission and optimization
APEC industry +: father of the king of the ox mill, industrial Internet "king of the ox mill anti-wear faction" Valentine's Day greetings | Asia Pacific Economic media | ChinaBrand
MySQL——JDBC
Hcie security Day10: six experiments to understand VRRP and reliability
浅议.NET遗留应用改造
treevalue——Master Nested Data Like Tensor
Mysql - - Index
Qt6 QML Book/Qt Quick 3D/基础知识
SQL injection - Fundamentals of SQL database operation
Getting started with postman -- environment variables and global variables
技术管理进阶——如何在面试中考察候选人并增大入职概率
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output