Saltstack maser ha

Source: Internet
Author: User
Tags saltstack

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.