salt-stack highstate - find slow states
问题 Running an initial install takes about 20 minutes, running a salt-call state.highstate takes about 6 minutes. That's not unreasonable, but I'd like to speed it up, but I'm not sure how to find the slowest states. Is there any way to find how long each state takes to run other than watching my screen with a stopwatch for 6 minutes? 回答1: sudo salt-call state.highstate provides start-time and duration for each state. ---------- ID: ntp-removed Function: pkg.removed Result: True Comment: None of