Port load balancing for puppet using Nginx and Mongrel, unicorn

Source: Internet
Author: User

The company's virtualization platform on the host, with the puppet management, but a single puppet has a big bottleneck problem ~ puppetmaster default is the use of Ruby's own Web server Webrick, it is too simple, Unable to meet puppet client hundreds of concurrent performance is bad.

Ruby is an analytic language, and the performance is certainly not very good; so we can't rewrite it in high performance language, but we can do it in some places to optimize performance.

My idea is that the combination of reverse proxy, puppetmaster capacity can be increased by at least several times, equivalent to a large extent, to optimize the puppet processing capacity.

Personal Summary, Puppet is very suitable for each service configuration ~ but not suitable for file transmission, such as you want to send an environment installation package, so that the client installation, which is very egg pain ~

Version of Puppet

Version of Ruby

Version of the system

Version of Nginx

First step

Yum Install-y Rubygem-mongrel

Second Step

Vim/etc/sysconfig/puppetmaster

Add the following content

puppetmaster_ports= (8141 8142 8143 8144 8145)

puppetmaster_extra_opts= "--servertype=mongrel--ssl_client_header=http_x_ssl_subject"

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.