6. Playbook cycle, conditional judgment in playbook, handlers in Playbook
1. playbook cycle
#vi/etc/ansible/while.yml //Add the following
---
- hosts: yw02
user: root
tasks:
- name: change mode for files
file: path=/tmp/{{ item }} mode=600
with_items:
- 1.txt
- 2.txt
- 3.txt
Description: A file module is used here, followed by a path, if it is a file, you can write/tmp/1. ...
Posted by genius on Fri, 10 Jan 2020 09:13:32 -0800
RxJava source code parsing back pressure + source code + synchronous asynchronous + principle
Article 3 of the seriesTo undertake the above: RXjava parsing (2) I gave you the source code of RXjava and this interview, and you told me that I couldn't get an offer?(leave the GitHub link, and you can find the content you need to obtain such as interview)https://github.com/xiangjiana/Android-MS
Back pressure problem
Backpressure refers to ...
Posted by info@ipfaces.org on Fri, 10 Jan 2020 07:09:03 -0800
cisco adds static route
Static route: the route entry written manually by a person is called static route, which is permanent and effective, with the highest priority and efficiency.
What's a router for?
Connect networks of different address segments. Block webcasts of different address segments.
The router has multiple interfaces, at least two, one LAN on one side.
...
Posted by dbarron87 on Fri, 10 Jan 2020 02:44:47 -0800
Resource object for pod in k8s (namespace, acquisition policy, restart policy, health check)
1. Resource Objects for k8s
Deployment, Service and Pod are the three core resource objects of k8s
Deployment: The controller of the most common stateless application that supports scaling, rolling upgrade, and so on.
Service: Provides a fixed access interface for flexible, life-cycle PD objects for service discovery and service access.
Pod: ...
Posted by PhotoClickr on Thu, 09 Jan 2020 11:17:29 -0800
linux script introduction
ls
#List all files starting with a and o
[root@sh02-hap-bss-prod-consul03 ~]# ls
anaconda-ks.cfg nss-pam-ldapd-0.9.8-1.gf.el7.x86_64.rpm openldap-clients-2.4.44-21.el7_6.x86_64.rpm original-ks.cfg tools
[root@sh02-hap-bss-prod-consul03 ~]# ls [ao]*
anaconda-ks.cfg openldap-clients-2.4.44-21.el7_6.x86_64.rpm original-ks.cfg
#[0-9] for a ...
Posted by hostcord on Thu, 09 Jan 2020 01:33:25 -0800
pacemaker + corosync + haproxy configuration cluster
Configure corosync
Install corosync pacemaker in both server5 and server6
yum install corosync pacemaker -y
Edit the corosync configuration file in server5
mv /etc/corosync/corosync.conf.example /etc/corosync/corosync.conf
vim /etc/corosync/corosync.conf
# Please read the corosync.conf.5 manual page
compatibility: whitet ...
Posted by jollyjumper on Wed, 08 Jan 2020 09:02:10 -0800
arcgis for android 100.3 environment configuration and creation of graphic
At present, the latest version of ArcGIS for Android on the official website has been updated to 100.3. Today, use the latest version of sdk to create a map demo application, and use the API to configure the downloaded sdk. Note that you need to register a developer account for the sdk you downloaded. Download it in the followi ...
Posted by assafbe on Wed, 08 Jan 2020 08:03:07 -0800
Learning Notes: docker deploys highly available MySQL clusters
Learning Notes: docker deploys highly available MySQL clusters
Environmental Science
CentOS 7.5 (IP:106.xx.xx.xx)
Docker 18.06.0-ce
1. docker settings
# Define Subnets
docker network create --subnet=172.18.0.0/16 net1
2. mysql Cluster (5)
Using the Percona-XtraDB-Cluster scheme
Connect 106.xx.xx.xx:30001-3000 ...
Posted by jauson on Tue, 07 Jan 2020 09:35:31 -0800
Android uses Glide to load network pictures with equal scaling
When loading android pictures, due to the limitation of the mobile screen, when many large pictures are loaded, we require equal scale, for example, according to the fixed width, equal scale height, so that the size scale of the picture gets the corresponding scale, but the picture does not change shape. Obviously, it can't be implemented accor ...
Posted by scraff on Tue, 07 Jan 2020 08:10:00 -0800
Redis Pipeline Pipeline Use
1.Redis single command usage scenario
The following steps are required for a Redis client to connect to a Redis server to execute a command:
The above process is called Round Trip Time (RTT), and the mget and mset commands save RTT, but most commands do not support batch operations.
Redis provides services through TCP, Client initiates r ...
Posted by holowugz on Tue, 07 Jan 2020 00:57:11 -0800