K8S deploy stateful application through Statefulset
1, Understanding statefuse
1. Statefuse ensures that pod s retain their identity (container name) and state after rescheduling.2. Statefuse achieves that each pod corresponds to the corresponding PV volume, and each pod can support a set of independent data volumes.3. Provide a stable network identity. Each pod created by a Statefulset has a z ...
Posted by kh411dz on Thu, 21 May 2020 08:38:01 -0700
Explanation of MySQL skip name resolve
mysql connection is slow. Log in to the server to view mysql logs:IP address 'XX.XX.XX.XX' has been resolved to the host name 'XX.XX.XX.XX.ro.ovo.sc', which resembles IPv4-address itself.The reason is that mysql performs DNS reverse resolution on the connected client.There are two solutions:1. Write the ip address of the client in the / etc/ ...
Posted by lohmk on Wed, 06 May 2020 22:54:02 -0700
[DNS] Ubuntu 14.04 deploy local DNS Service
1, Background
In the Intranet environment, you need to install the local DNS service at many times. Take the ubuntu 14.04 64 bit operating system environment as an example to illustrate the DNS server building method.
2, Deployment steps
2.1 install bind software
# apt-get install bind9 -y
2.2 edit profile
A. add a custom domain name reso ...
Posted by ramas on Tue, 05 May 2020 18:03:14 -0700
MySQL high availability scheme Mgr + consumer combination test
To fully simulate a complete set of consumer + Mgr environment, we may need to configure the following servers:Three serve as the consumer server, and the other three serve as MySQL servers in MGR single master mode.
1, Build Mysql MGR:
Download the new version of mysql 8.0.13
wget https://cdn.mysql.com/archives/mysql-8.0/mysql-8.0.13-linux-gl ...
Posted by tisa on Sun, 03 May 2020 15:16:08 -0700
Analysis of HTTPS by OKhttp3
http://blog.csdn.net/lmj623565791/article/details/48129405 This article of Hongyang God is very clear, but with the revision of OKhttp, some methods no longer exist.
for instance:
mOkHttpClient.setSslSocketFactory(sslContext.getSocketFactory());
There is no such method.
But as long as OKhttp still supports HTTPS ...
Posted by ErikTheViking on Sat, 02 May 2020 17:33:16 -0700
Write decorator to implement python request error retry function
When doing interface automation test, we always encounter interface script failure due to connection timeout and other errors.
Official method:
max_retries=5 error retries 5 timesNote that this is only for DNS, connection error retry.
from requests.adapters import HTTPAdapter
s = requests.Session()
s.mount('http://',HTTPAdapter( ...
Posted by irving on Sat, 25 Apr 2020 08:41:56 -0700
Discovery and automatic update of docker container service based on consumer (principle + deployment)
Preface
In the previous article, I have described some contents of docker's entry level. This article begins to explain other contents of docker in depth. First, it will talk about the principle and practical operation of the discovery and automatic update part of docker container service.
Talk about the concept and advantages (just look at t ...
Posted by php_gromnie on Fri, 24 Apr 2020 04:41:02 -0700
kubernetes service discovery plug-in CoreDNS (operation and maintenance technology exchange group: 926402931, welcome to exchange together.)
Catalog
1. Deployment list of Intranet resources of kubernetesubernetes
2. Configure dns resolution
3. Browser visit k8s-yaml.od.com
4. Download docker image and upload it to harbor warehouse
5. Prepare resource allocation list
6. Application resource allocation
7. Check the created resources
8. Verify coreDNS
1. Deployment list of Intranet ...
Posted by xcasio on Mon, 06 Apr 2020 07:19:53 -0700
Server initialization
1. What can server initialization do
Turn off selinux
ntp synchronization time
Modify dns
Configure ssh key
Modify yum source
Set host name
Kernel parameter optimization: tcp, memory, routing, file handle
Install the necessary software package: gcc-c++ cmake nmp wget vim jdk traceroute iotop, etc
Prohibit root logi ...
Posted by Ark3typ3 on Thu, 02 Apr 2020 00:33:30 -0700
LDAP/SASL/GSSAPI/Kerberos programming API--krb5 client
There are two libraries available for krb5 API: MIT and Heimdal. The APIs of the two libraries are different. It is basically OK for one client's API to connect to the otherThe two kadmin libraries in API are completely incompatible. From the kadmin application tools of MIT and Heimdal, it can be seen that it is not successful to connect the k ...
Posted by AdRock on Tue, 17 Mar 2020 22:47:23 -0700