Feature Request: Detect when a config sync is running? / Queue API requests, if config sync is running
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.2k
- Forks
- 616
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 10
Description
We have the problem that when the config sync is running, all API requests against the master are unsuccessful. The config sync takes atm about 2 minutes.
If an icinga check in powershell runs during this time window, which has to execute API requests against the master, this will result in an error.
First question:
Is there a way to query via API whether a config sync is currently running or not? -> If we could query whether a config sync is running or not, we could adapt the icinga powershell scripts accordingly. That would help us enormously.
Second question:
Is it possible to trigger a pre and post script before/after the config sync?
We now have over 2000 hosts and over 43000 checks, I'm afraid that the config sync will "at some point" take 10 minutes or more and that we'll create "wild" incidents during this time. How do you generally handle the config sync in "large" environments?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how configuration sync runs on the master and how API requests are handled during that period. The issue raises three possible outcomes—an API status query, pre/post sync hooks, or request queuing—but does not select one; first define the intended behavior and completion criteria with maintainers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100