介绍
这种情况一天发生几次,木偶代理不能马上识别出木偶大师的变化。 如果是这种情况,木偶需要运行5次以上(如X <5min)才能识别出变化。
预期
Puppetmaster的变化应该立即被Puppet-agent承认
尝试
在阅读这个文档之后,其中一个解决这个问题的尝试被执行了:
Puppet includes a basic puppet master web server based on Ruby's WEBrick library. (This is what Puppet uses if you run puppet master on the command line or use most puppetmaster init scripts.) You cannot use this default server for real-life loads, as it can't handle concurrent connections; it is only suitable for small tests with ten nodes or fewer. You must configure a production quality web server before you start managing your nodes with Puppet. Any Rack-based application server stack will work with a puppet master, but if you don't have any particular preference, you should use Passenger combined with Apache. This guide shows how to configure Puppet with this software.
当前
这些尝试并没有解决这个问题,即木偶大师的变化不会立即被木偶代理人承认
这可能是环境caching的一个问题 – 默认情况下,在3.7版中,文件系统环境中的数据将被caching3分钟,所以更改对代理节点不可见,直到该caching过期。
调整主人的environment_timeout以获得所需的行为,并带有警告:如果使用0来完全避免caching,则会产生一些令人讨厌的性能影响。