Zookeeper Api(java) and Application
How to use
As a distributed service framework, Zookeeper is mainly used to solve the consistency problem of application systems in distributed clusters. It can provide data storage based on directory node tree similar to file system. However, Zookeeper is not used to store data. Its function is mainly to maintain and monitor the state changes ...
Added by cjl on Mon, 31 Jan 2022 09:56:00 +0200
JAVACC Usage Summary: through four arithmetic analysis, explore syntax analysis
Grammar analysis
JavaCC generates a top-down parser that does not support left recursion and recursive descent. The advantage of this parser is that the syntax is easy to understand and easy to debug. Attributes can be passed up and down in the syntax parsing tree, and can also be called between branches. As shown in the figure:
Left recurs ...
Added by Chamza on Sun, 30 Jan 2022 16:15:27 +0200
Kafka security authentication SASL/PLAINTEXT, account password authentication
Environment centos7 kafka cluster and zookeeper cluster do not have user password by default.
1. Configure zookeeper cluster SASL
All nodes of zookeeper are peer-to-peer, but the roles of each node may be different. The configuration of all nodes in the following steps is the same.
1. Add SASL support for zookeeper in the configuration file ...
Added by saami123 on Sun, 30 Jan 2022 11:34:58 +0200
Microservice 5: service registration and discovery (practice)
★ micro service series
Microservices 1: microservices and its evolution history
Microservice 2: microservice panoramic architecture
Microservice 3: microservice splitting strategy
Microservice 4: service registration and discovery
Microservice 5: service registration and discovery (practice)
1 service registry
Previously, we introduced several ...
Added by evanluke on Sat, 29 Jan 2022 08:28:17 +0200
Zookeeper05 zookeeper related commands
1,zkCli. How to use sh script
Official Manual: https://zookeeper.apache.org/doc/current/zookeeperCLI.html
1.1. Connect and exit ZooKeeper server
1. Connect to ZooKeeper server
The syntax of using ZooKeeper client (zkCli.sh) to connect to ZooKeeper server is:
zkCli.sh -timeout 5000 -r -server ip1:port1[,ip2:port2,ip3:port3]
-timeout: In ...
Added by Johnm on Sun, 23 Jan 2022 05:32:28 +0200
zookeeper05 - using ZooKeeper
3. Start using ZooKeeper
3.2. The first ZooKeeper session
Use zkServer and zkCi tools under bin / directory in ZooKeeper for debugging and management.
Use the client to establish a session
]# zkCli.sh --
...
--The client starts the program to establish a session.
2021-12-22 09:37:37,464 [myid:] - INFO [main:ZooKeeper@868] - Initiating ...
Added by kaisellgren on Sun, 23 Jan 2022 01:57:24 +0200
zookeeper case - distributed lock - Analysis of commodity second kill principle
Lock: we have contacted in multithreading. The function is to prevent the current resources from being accessed by other threads! My diary can't be seen by others. So lock it in the safe
When I open the lock and take away the diary, others can use the safe
The "herding effect" caused by using traditional locks in zookeeper: 1000 peo ...
Added by slawrence10 on Sat, 22 Jan 2022 13:56:20 +0200
Distributed Dubbo+Zookeeper+SpringBoot
1. Distributed theory
1.1. What is a distributed system?
In the book "principles and models of distributed systems", there is the following definition: "a distributed system is a collection of several independent computers, which are like a single related system to users";Distributed system is a system composed of a group ...
Added by Xanza on Fri, 21 Jan 2022 01:16:54 +0200
An accident tells you which of zookeeper and nacos is better for the registration center
preface
In distributed systems, registry plays an important role and is an indispensable member of service discovery and client load balancing. In addition to the basic functions of the registry, its stability, availability and robustness have a significant impact on the smooth operation of the whole distributed system. As a mainstream distrib ...
Added by binto on Tue, 18 Jan 2022 20:50:12 +0200
Spring cloud series: 5 Stand alone Eureka registry + cluster Eureka registry
preface
Detailed explanation of Eureka 1.1 detailed explanation of Eureka 1 1.2 detailed explanation of Eureka 2Code demo - stand alone Eureka registry ring 2.1 code Demonstration - Eureka service registration 2.2 Eureka's self-protection mechanism (service discovery mechanism for team cooperation))Eureka cluster environment configurationEurek ...
Added by abhi_10_20 on Sat, 15 Jan 2022 08:19:30 +0200