powershell - Chef 提高powershell_script性能

标签 powershell chef-infra chef-zero

有没有办法让厨师重用Powershell session 或至少减少新流程的启动时间?运行需要2秒钟的时间来执行使用powershell的not_if和only_if检查(即使PS代码本身是瞬时的)。改善它会很好。

最佳答案

并不是我所知道的,所见即所得。如果您对此感兴趣,可以在GitHub问题或请求请求中进行讨论。

关于powershell - Chef 提高powershell_script性能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38254325/

相关文章:

powershell - 使用 PowerShell 下载 URL 内容

Powershell,OOP,为什么返回$false不退出类方法

chef-infra - Chef 服务器将无法启动 - 在 16011 中启动 Chef-server 失败

Linux 下载通配符 URL

Vagrant 与 Chef Zero 在初始启动时失败,但在后续配置中成功

powershell - 如何使用PowerShell将UTF-8字符传递给clip.exe,而无需转换为另一个字符集?

postgresql - 如何使用 chef `postgresql` Recipe 创建 postgres 角色?

chef-infra - 如何为 Chef 本地模式指定 chef_environment (chef-client -z)

powershell - Format-Table 忘记了一些属性,但 Format-List 显示了所有属性。为什么?