官术网_书友最值得收藏!

Using MessagePack serialization

Running Puppet in a centralized architecture creates a lot of traffic between nodes. The bulk of this traffic is JSON and yaml data. An experimental feature of the latest releases of Puppet allow for the serialization of this data using MessagePack (msgpack).

Getting ready

Install the msgpack gem onto your Puppet master and your nodes. Use Puppet to do the work for you with Puppet resource. You may need to install the ruby-dev or ruby-devel package on your nodes/server at this point:

t@ckbk:~$ sudo puppet resource package msgpack ensure=installedprovider=gem
Notice: /Package[msgpack]/ensure: created
package { 'msgpack':
 ensure => ['0.5.8'],
}

How to do it...

Set the preferred_serialization_format to msgpack in the [agent] section of your nodes puppet.conf file:

[agent]
preferred_serialization_format=msgpack

How it works...

The master will be sent this option when the node begins communicating with the master. Any classes that support serialization with msgpack will be transmitted with msgpack.Serialization of the data between nodes and the master will in theory increase the speed at which nodes communicate by optimizing the data that is travelling between them. This feature is still experimental.

主站蜘蛛池模板: 通辽市| 托克托县| 偏关县| 山阴县| 宜州市| 肃宁县| 茂名市| 莫力| 饶河县| 廉江市| 防城港市| 紫金县| 张家口市| 胶州市| 西畴县| 台南市| 广灵县| 乌拉特前旗| 太白县| 静宁县| 甘洛县| 安顺市| 孟州市| 新郑市| 漯河市| 土默特左旗| 旺苍县| 泗水县| 蒙阴县| 左云县| 申扎县| 沙洋县| 乌兰浩特市| 杨浦区| 城固县| 婺源县| 大港区| 靖远县| 五指山市| 汤原县| 剑川县|