Puppet扩展篇5-通过多进程增强master的负载均衡能力(nginx+mongrel)

2、增加puppet端口

  1. PUPPETMASTER_PORTS=( 18140 18141 18142 18143 )

4、分别启动nginx服务和puppetmaster服务

  1. [root@puppetserver1poc ~]# /etc/rc.d/init.d/nginx restart
  2. Stopping nginx: [FAILED]
  3. Starting nginx: [ OK ]
  4. Starting puppetmaster:
  5. Port: 18140 [ OK ]
  6. Port: 18141 [ OK ]
  7. Port: 18142 [ OK ]

6、通过日志查看运行状况

  1. 192.168.100.127 - - [25/Nov/2013:16:42:49 +0800] "POST /production/catalog/agent2.kisspuppet.com HTTP/1.1" 200 570 "-" "-"
  2. 192.168.100.127 - - [25/Nov/2013:16:42:52 +0800] "PUT /production/report/agent2.kisspuppet.com HTTP/1.1" 200 58 "-" "-"
  3. 192.168.100.126 - - [25/Nov/2013:16:42:54 +0800] "GET /production/file_metadatas/plugins?links=manage&checksum_type=md5&&ignore=---+%0A++-+%22.svn%22%0A++-+CVS%0A++-+%22.git%22&recurse=true HTTP/1.1" 404 56 "-" "-"
  4. 192.168.100.126 - - [25/Nov/2013:16:42:54 +0800] "GET /production/file_metadata/plugins? HTTP/1.1" 404 36 "-" "-"
  5. 192.168.100.126 - - [25/Nov/2013:16:42:55 +0800] "POST /production/catalog/agent1.kisspuppet.com HTTP/1.1" 200 570 "-" "-"
  6. 192.168.100.125 - - [25/Nov/2013:16:43:07 +0800] "GET