当前位置:网站首页>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 .
边栏推荐
- Compilation Principle -- syntax analysis
- Hcie security Day11: preliminarily learn the concepts of firewall dual machine hot standby and vgmp
- Selenium has three waiting methods (forced waiting, implicit waiting, and display waiting)
- MySQL——数据库备份
- Study diary: February 14th, 2022
- QFileDialog
- treevalue——Master Nested Data Like Tensor
- 上周内容回顾
- What if the Flink SQL client exits and the table is emptied?
- Advanced technology management - how to examine candidates in the interview and increase the entry probability
猜你喜欢

MySQL - idea connects to MySQL

"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks

TiDB 之 TiCDC6.0 初体验
![Capturing and sorting out external articles -- autoresponder, composer, statistics [III]](/img/bf/ac3ba04c48e80b2d4f9c13894a4984.png)
Capturing and sorting out external articles -- autoresponder, composer, statistics [III]

Reinforcement learning - learning notes 1 | basic concepts

Transformer structure analysis and the principle of blocks in it

Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
![Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]](/img/bf/ac3ba04c48e80b2d4f9c13894a4984.png)
Capture de paquets et tri du contenu externe - - autoresponder, composer, statistiques [3]

MySQL——JDBC
![[Yugong series] go teaching course 002 go language environment installation in July 2022](/img/47/35b4fb0354122e233977b261ef405b.png)
[Yugong series] go teaching course 002 go language environment installation in July 2022
随机推荐
Advanced collaboration: coroutinecontext
What should the future of the Internet be like when Silicon Valley employees flee the big factory and rush to Web3| Footprint Analytics
Qt6 QML Book/Qt Quick 3D/基础知识
MySQL - database backup
Transformation between yaml, Jason and Dict
Yiwen teaches you how to choose your own NFT trading market
flink sql-client 退出,表就会被清空怎么办?
Ask and answer: dispel your doubts about the virtual function mechanism
Install and use Chrony, and then build your own time server
No matter how hot the metauniverse is, it cannot be separated from data
Visiontransformer (I) -- embedded patched and word embedded
Custom view incomplete to be continued
Baohong industry | good habits that Internet finance needs to develop
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
电子科技大学|强化学习中有效利用的聚类经验回放
浅议.NET遗留应用改造
XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
Single page application architecture
Preliminary understanding of C program design
Scientific research document management Zotero