saltstack / saltstack/salt

[BUG] Presence of many Saltify'd machines can slow all cloud actions

Open
#59,513 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Salt-Cloud severity-medium ZD
Dominant language
Python
Stars
15.7k
Forks
5.6k
Avg merge
2d 44m
Merged PRs (30d)
80

Description

Description

A configured saltify driver with many Saltify'd servers can dramatically slow any cloud action (such as show_instance), since an effective salt -G salt-cloud:driver:saltify grains.items runs on every action.

Going to break from the bug template and just dump what I found during a customer investigation.

I've followed the source, and it looks like this is behaving as expected for the saltify cloud driver.


How to potentially make this better:

  • The saltify driver should support a list_nodes_min function if possible which could do a lighter-weight retrieval of saltify'd nodes.

Versions Report

Seen in Salt 3002.2.

Additional context

ZD-6357.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in salt/cloud/clouds/saltify.py, especially list_nodes(), _list_nodes_full(), and the grains.items call, then compare the provider selection flow in salt/cloud/init.py. Investigate how saltify could provide a lighter list_nodes_min path without retrieving full grains for every machine. Done means cloud actions no longer perform the expensive full retrieval when only node names are needed, with relevant tests updated or added.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cloud
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.