zookeeper cluster configuration
Download and install
from Official website Download the latest version of zookeeper
Relevant address: http://mirror.bit.edu.cn/apache/zookeeper/current/
# wget --quiet http://mirror.bit.edu.cn/apache/zookeeper/current/zookeeper-3.4.10.tar.gz
# tar -xf zookeeper-3.4.10.tar.gz
# cd zookeeper-3.4.10
Enter the conf directory, change ...
Posted by Brad7928 on Thu, 20 Jun 2019 03:43:25 +0200
Use and Analysis of [Curator] Distributed Queue
Distributed Queue
Distributed queue
A distributed queue implementation based on ZK.
The messages put in guarantee order (ordered persistent nodes based on zk).
For individual consumers, queues are a FIFO (first in first out) approach.
If you need to control the order, you can specify a Leader Selector for the consumer to customize the consumpti ...
Posted by chombone on Sun, 16 Jun 2019 20:54:15 +0200
Shiro Essays (2: Discussing FilterChainManager)
Happy that I can't write a gorgeous blog post because of my poor writing, I am ready to read 3,000 hidden books, hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee hee heOkay, don't chat much, just go to today's topic.
Code directly:
package org.apache.shiro.web.filter.mgt;
import org.apache. ...
Posted by Dean Glass on Sat, 15 Jun 2019 18:30:01 +0200
spark Source Reading--shuffle Process Analysis
ShuffleManager (1)
In this article, let's take a look at Shuffle Manager, another important module in the spark kernel.Shuffle is arguably one of the most important concepts in distributed computing, which is required for data join ing, aggregation, de-duplication, and so on.On the other hand, one of the main reasons why spark performs better t ...
Posted by johnh on Fri, 14 Jun 2019 20:53:13 +0200
Assignment Question 3
3. Implement HA-LAMP combination based on heartbeat v2 crm; Require that wordpress be deployed, and any data in the edited articles can be accessed normally after node switching;
Introduce networking:
All devices use CentOS 6.8 operating system
Two servers are configured with LAMP, IP addresses 192.168.255.128 and 192.168.255.129
V ...
Posted by ultrasound0000 on Tue, 11 Jun 2019 20:41:15 +0200
Dubbo Getting Started -----dubbo hello world
Example of getting started with dubbo hello world
1. Demand
In an e-commerce system, order services need to call user services to get all addresses of a user;
We now need to create two service modules to test:
Modular
function
Order Service web Module
Create an order, etc.
User service Module
Query user addr ...
Posted by mr_badger on Sun, 09 Jun 2019 19:12:42 +0200
Building Web Socket WSS Environment for Small Program Development (Apache+WorkerMan Framework+PHP)
Here we use the WorkerMan framework, the server is CentOS, the Web server is Apache, and the development language is PHP.
Because WSS is a combination of WebSocket and SSL, it is necessary to prepare the SSL certificate for the corresponding domain name in advance. Generally, there are three certificate files, such as the following:
SSLCertif ...
Posted by todayme on Mon, 03 Jun 2019 22:59:10 +0200
jvm series: jvm tuning - jps jstat jmap jhat jstack jinfo
From: https://www.cnblogs.com/ityouknow/p/5714703.html
Using the command of JVM can help us locate the problem easily in production monitoring and printing the log information of stack. Although there are many mature tools for JVM tuning: jconsole, famous Visual VM, IBM's Memory Analyzer and so on, when problems arise in the production environ ...
Posted by Emma on Sun, 02 Jun 2019 21:01:42 +0200
zookeeper distributed lock
There are many distributed locks. redis can also implement distributed locks.http://shangdc.blog.51cto.com/10093778/1914852 (see redis distributed locks)zookeeper Distributed Lock Step:1. Zookeeper is a node, similar to the file directory, so we abstract the lock into a directory. Zookeeper has a node of EPHEMERAL_SEQUENTIAL type. When multiple ...
Posted by CoolAsCarlito on Sat, 01 Jun 2019 01:15:55 +0200
Why does the Ali Code Specification require you to avoid copying attributes using Apache BeanUtils
Statement: This article is an original article, originated from the public name: Programmer's way of self-learning, and published synchronously in https://blog.csdn.net/dadiyang Hereby, synchronized release to sf, reproduced please indicate the source.
origin
In one development process, we just saw a small partner calling the set method to copy ...
Posted by m7_b5 on Fri, 31 May 2019 21:03:35 +0200