当前位置:网站首页>Cluster clock synchronization configuration
Cluster clock synchronization configuration
2022-07-25 03:55:00 【Leisurely summer】
The idea of cluster clock synchronization
1、 Each server node in the distributed cluster can connect to the Internet
Ideas :

Mode of operation :
# send ⽤ ntpdate ⽹ Network time synchronization command
ntpdate -u ntp.api.bz # from ⼀ Time servers synchronize time
windows Planned tasks
Linux There are also scheduled tasks ,crond, have access to linux Scheduled tasks for , every other 10 Minute execution ⼀ Time ntpdate command
2、 In a distributed cluster ⼀ Server nodes can access the Internet ⽹ Or all nodes cannot access the Internet
X Ideas :

Mode of operation :
Select... In the cluster ⼀ Server nodes A(172.17.0.17) As a time server ( The whole cluster time starts from this service
Synchronizer , If this server can access the Internet , You can keep this server synchronized with the network time , If you don't
It can be set manually ⼀ Time )
First set up A Time for
hold A Configured as a time server ( modify /etc/ntp.conf file )
1、 If there is restrict default ignore, Comment it out
2、 Add the following lines
restrict 172.17.0.0 mask 255.255.255.0 nomodify notrap # Let go of the game
Domain network synchronization function ,172.17.0.0 It's your LAN segment
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
3、 Restart and configure ntpd The service starts automatically
service ntpd restart
chkconfig ntpd on
Other nodes in the cluster can be accessed from A Server synchronization time
ntpdate 172.17.0.17
边栏推荐
- Acwing 870. approximate number
- Customized view considerations
- Take a database statement note: when the field is empty, assign the default value to the result
- Force deduction brush question 7. Integer inversion
- Memory leak due to improper handling of custom view
- Force deduction brush question 14. Longest common prefix
- Flowlayout in compose
- How to do a good job in safety development?
- 300. Longest increasing subsequence
- Easyexcel sets the style of the last row [which can be expanded to each row]
猜你喜欢

Electronic bidding procurement mall system: optimize traditional procurement business and speed up enterprise digital upgrading

基于SSM实现后勤报修系统

Analysis of browser working principle

Customized view considerations
![Top101 [linked list] must be applied for interview](/img/f5/2b27d0e3fbd52dd04ffcd660c01a78.png)
Top101 [linked list] must be applied for interview

Force the resumption of game 302 of the week

Hw2021 attack and defense drill experience - Insights

Fifth day of force deduction

Flink1.15 source code reading - Flink annotations

C language_ Defining structures and using variables
随机推荐
原创 | ueditor1.4.3-asmx绕过waf
Machine learning exercise 8 - anomaly detection and recommendation system (collaborative filtering)
Take a database statement note: when the field is empty, assign the default value to the result
Which securities company is better to open an account? Is it safe to open an account on your mobile phone
Li Kou 343 integer partition dynamic programming
Uniapp picker select the effect demo of provinces and cities (finishing)
[Flink] submit the jar package to the Flink cluster and run it
Deep learning method of building a model from zero
Use go language to import Doris data through stream load
292. Nim game
What is technical support| Daily anecdotes
Implementation of logistics repair reporting system based on SSM
Easyexcel sets the style of the last row [which can be expanded to each row]
[kaggle] how to effectively avoid oom and the long process of alchemy
[golang] golang realizes sending wechat service number template messages
Shell programming (script) (variable)
Wechat applet access wechat payment process
Unity word document click button to download
Execution flow control of shell
One question per day