当前位置:网站首页>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——数据库备份
- 鹏城杯 WEB_WP
- 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
- Measurement fitting based on Halcon learning -- Practice [1]
- MySQL——JDBC
- MySQL - SQL injection problem
- "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
- MySQL——规范数据库设计
- 强化學習-學習筆記1 | 基礎概念
猜你喜欢

MySQL - idea connects to MySQL

QT6 QML book/qt quick 3d/ Basics

MySQL——索引

仿网易云音乐小程序

MySQL——索引

Haven't expressed the artifact yet? Valentine's Day is coming. Please send her a special gift~

技术管理进阶——如何在面试中考察候选人并增大入职概率

9 pyqt5 qscrollarea scroll area and qscrollbar scroll bar

Yyds dry goods inventory TCP & UDP

Advanced technology management - how to examine candidates in the interview and increase the entry probability
随机推荐
QFileDialog
Kubernetes abnormal communication network fault solution ideas
Goodbye 2021, how do programmers go to the top of the disdain chain?
Apprentissage intensif - notes d'apprentissage 1 | concepts de base
鹏城杯 WEB_WP
What is the maximum number of concurrent TCP connections for a server? 65535?
Software testing skills, JMeter stress testing tutorial, obtaining post request data in x-www-form-urlencoded format (24)
Scientific research document management Zotero
2022 melting welding and thermal cutting examination materials and free melting welding and thermal cutting examination questions
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
jvm jni 及 pvm pybind11 大批量数据传输及优化
No more! Technical team members resign collectively
Monkey/ auto traverse test, integrate screen recording requirements
Rhcsa third day operation
Discussion Net legacy application transformation
treevalue——Master Nested Data Like Tensor
Quickly distinguish slices and arrays
Ask and answer: dispel your doubts about the virtual function mechanism
Pengcheng cup Web_ WP
Custom view incomplete to be continued