Build docker swarm cluster to realize load balancing
About Swarm:
Swarm is a cluster management tool officially provided by Docker. Its main function is to abstract several Docker hosts as a whole, and manage all kinds of Docker resources on these Docker hosts through a single portal.
Swarm and kubernetes are similar, but lighter, and have fewer functions than kubernetes
Experime ...
Posted by majiclab on Thu, 05 Dec 2019 00:13:00 -0800
centos7 installation and configuration of rsync and problems encountered
install
Server side
Install software:
yum -y install rsync
To create a directory to synchronize:
mkdir -p /data
Edit the configuration file: vim /etc/rsyncd.conf
motd file = /etc/rsyncd.motd
transfer logging = yes
log file = /var/log/rsyncd.log #Log storage path
port = 873 #Port number
address = 192.168.0.37 #IP address
uid = root #User ...
Posted by Pie on Tue, 03 Dec 2019 21:25:11 -0800
Performance optimization of Oracle
The previous life of the analytic index of performance optimization of Oracle
Summary: in oracle, index is like a book's catalog, which can speed up the query speed and improve the query efficiency. In oracle, b-tree index is used to store the index. B-number index is a tree structure with branches and leaves. Index is divided into root node, ...
Posted by JukEboX on Tue, 03 Dec 2019 02:47:47 -0800
ubuntu, debian install redis, set the startup auto start and password, and allow Internet access
The package of apt comes with redis. If the version of redis is not very high, you can directly use apt to install it:
apt install redis-server
Start redis:
redis-server
Start command line interface:
redis-cli
Note: after apt installation, the location of redis configuration file is / etc/redis/redis.conf
To modify a profile: ...
Posted by ElkySS on Sun, 01 Dec 2019 17:59:17 -0800
How to Cross-compile the GO Program with ARM Architecture on Ubuntu
We all know that when CGO is not involved, cross-compilation of Go s is very simple and requires only the corresponding GOOS and GOARCH to be set, but when CGO is involved, the problem becomes a bit complicated because you need to specify a specific GCC.
For example, if you want to cross-compile a dynamic library with CGO on Ubuntu and the tar ...
Posted by Deadman2 on Wed, 27 Nov 2019 15:29:44 -0800
How to set up the experiment environment of Varnish reverse agent
Construction of Varnish experimental environment
1. Download the 6.5 image and configure the network yum source on the host
yum install httpd -y
systemctl start httpd
systemctl enable httpd
mkdir /var/www/html/rhel6.5/
mount /iso/rhel-server-6.5-x86_64-dvd.iso /var/www/html/rhel6.5/
2. Create a master disk:
(1) open Virtual ...
Posted by psionicwrath on Tue, 26 Nov 2019 10:39:56 -0800
EFK tutorial - ElasticSearch multi instance deployment
Based on ElasticSearch multi instance architecture, realize reasonable resource allocation and separation of hot and cold data
Author: "the wolf of hair", welcome to reprint and contribute
Catalog
Application
Framework
▪ 192.168.1.51 elastic search data deployment dual instance
▪ 192.168.1.52 elastic search data deployment dual inst ...
Posted by pennythetuff on Mon, 25 Nov 2019 05:51:54 -0800
Using Alibaba cloud Serverless function calculation to realize HTTP health check + fault SMS notification
Application scenario
Regularly request the website / API, judge whether the service is available and whether the website is down according to the request response, and send a SMS to inform the administrator when there is a down time
engineering service
Operation platform: Alibaba cloud functional computingDevelopment language: Python 3 (small f ...
Posted by fellixombc on Sun, 24 Nov 2019 07:56:44 -0800
OkHttp3 source code details okhttp connection pool reuse mechanism
1. Overview
To improve network performance optimization, it is very important to reduce latency and improve response speed.
Usually, when we make a request in the browser, the header part is like this
Keep alive is to keep a long connection between the browser and the server, which can be reused. It is enabled by default in HTTP 1.1.
Why does ...
Posted by tempa on Mon, 18 Nov 2019 02:01:01 -0800
OkHttp3 source code details Request class
Every network request is a request. Request is the encapsulation of URL, method, header and body. It is also the encapsulation of request line, request header and entity content in Http protocol
public final class Request {
private final HttpUrl url;
private final String method;
private final Headers headers;
private final RequestB ...
Posted by gazever on Mon, 18 Nov 2019 01:39:59 -0800