I. I have been busy with database platform testing recently. I'm so excited that it will be available after the National Day, but I still have some concerns. All the functions depend on this platform, including basic database operations, permission management, migration, monitoring, alarms, etc. If the platform crashes, the sky will collapse, so I made all the components of the platform ha, this article record the ha of the saltstack maser. There are some introductions on the official website, but I am not very clear about it. Let's simply summarize the steps.
II. Environment
10.10.10.10 salt-maser110.10.10.11 salt-maser210.10.10.100 salt-minion10.10.10.101 salt-minion10.10.10.102 salt-minion
Iii. Deployment
Salt-maser1 on
1. Yum-y install salt-master2, VIM/etc/salt/masterauto_accept: true # Remove the comment on this line, and modify false to true3, start the service/etc/init. d/salt-master start
Salt-maser2 on
1. After performing steps 1 and 2 on the salt-maser1, there is also the most critical step SCP salt-maser1/etc/salt/pki/master. PEM and/etc/salt/pki/master. pub, overwrite local 2. Start the service/etc/init. d/salt-master start
Salt-minion
1, yum-y install salt-minion2, VIM/etc/salt/minion Add the following content master:-10.10.10.10-10.10.10.11id: 10.10.19.373, start service/etc/init. d/salt-Minion start
Now it is OK. Test the two masters:
Salt-key-L # view client key authentication information salt '*' cmd. Run "Ping-C 2 cmcm.com"
This article is from the blog "diaosi O & M male" and will not be reprinted!
Saltstack maser ha