This article is reproduced from https://blog.csdn.net/CSDN_Stephen/article/details/78856323
Mainstream implementation of Spring Cloud Configuration Center
Spring cloud config
Spring clo
Open-source software (open-source) is a new term that is defined as software whose source code can be used by the public, and the use, modification, and distribution of this software are not restricted by licenses. Open source software is usually copyrighted, and its license may contain such restrictions: deliberate protection of its open source status, notice of authorship, or development control. “Open source” is being registered as a certification mark by public interest software organizations, which is also a means of creating a formal definition of open source.
This article is reproduced from https://blog.csdn.net/CSDN_Stephen/article/details/78856323
Mainstream implementation of Spring Cloud Configuration Center
Spring cloud config
Spring clo
[[email protected] scripts]$ cat zookeeper_mode.sh
#!/bin/bash
mode=`echo srvr|nc 127.0.0.1 2181| awk’/Mode/{print $2}’`
if [[ “$mode” == “follower” ]]; then
echo 1
el
The previous article “Spring Cloud Building Registration Center and Service Registration” introduced the construction of the registration center and service registration. This article will introduc
Data is stored in the database. In order to speed up business access, we put some data in the database in the cache. Then the question is, how to ensure the consistency of the data in the db and th
Cannot connect to localhost:8080 1
2
3
4
< /span>
org.springframework.boot
spring-boot-starter< /artifactId>
< /figure> This code in pom.xml is changed to
org.springframework.boot
One. Synchronization scenario
The old cluster is mixed with multiple services, and data needs to be synchronized to the new cluster, and some services are cut to the new cluster. At the same
2019-01-11 10:33:19,963 [myid:]-INFO [main:[email protected]]-Reading configuration from: /data/apps/zookeeper/bin/../conf/zoo .cfg 2019-01-11 10:33:19,975 [myid:]-INFO [main:[email protected]]-Res
Distributed classic structure
As shown in the figure, when the front end receives the request, By calculating the hash value of the key, the hash value is modulo 3, and then distributed to di
1. Node type
two. Stat structure
1) czxid-the transaction zxid that created the node
Every time you modify the ZooKeeper status, you will receive a timestamp in the form of zxid,
1. When the console displays an error message: Bad credentials, there is a problem with the password. Check the password and verify it.
2. When the form form submits data, the default formdat