当前位置:网站首页>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 .
边栏推荐
- Mysql - - Index
- Rhcsa third day operation
- 2022 low voltage electrician examination and low voltage electrician simulation examination question bank
- [vulnhub shooting range] impulse: lupinone
- Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
- "Designer universe" APEC safety and health +: environmental protection Panda "xiaobaobao" Happy Valentine's Day 2022 | ChinaBrand | Asia Pacific Economic media
- 抓包整理外篇——————autoResponder、composer 、statistics [ 三]
- Link aggregation based on team mechanism
- Mysql database ----- common commands of database (based on database)
- CesiumJS 2022^ 源码解读[7] - 3DTiles 的请求、加载处理流程解析
猜你喜欢
Hcie security Day10: six experiments to understand VRRP and reliability
MySQL——索引
Visiontransformer (I) -- embedded patched and word embedded
Yiwen teaches you how to choose your own NFT trading market
Transformer structure analysis and the principle of blocks in it
鹏城杯 WEB_WP
Memory analyzer (MAT)
@Transactional注解失效的场景
How to choose cache read / write strategies in different business scenarios?
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
随机推荐
Getting started with postman -- environment variables and global variables
Set, weakset, map, weakmap in ES6
MySQL - index
2022-02-15 Daily: 2022 AAAI fellow release
17 websites for practicing automated testing. I'm sure you'll like them
Kernel symbol table
鹏城杯 WEB_WP
Hcie security Day12: supplement the concept of packet filtering and security policy
TiDB 之 TiCDC6.0 初体验
The post-90s resigned and started a business, saying they would kill cloud database
QFileDialog
Kubernetes abnormal communication network fault solution ideas
No matter how hot the metauniverse is, it cannot be separated from data
内存分析器 (MAT)
《ActBERT》百度&悉尼科技大学提出ActBERT,学习全局局部视频文本表示,在五个视频-文本任务中有效!...
Pengcheng cup Web_ WP
The "boss management manual" that is wildly spread all over the network (turn)
Transformation between yaml, Jason and Dict
抓包整理外篇——————autoResponder、composer 、statistics [ 三]
使用dnSpy对无源码EXE或DLL进行反编译并且修改