Werk #22655 · Nov 27, 26
Discovery of a cluster node applies the selected options to clustered services
This affects users who assign services of nodes to a cluster with the rule Clustered services.
The autochecks file of a node also holds the node's entries for the services that belong to the cluster. A service discovery of the node writes these entries too. This concerns a bulk discovery that includes the node and the periodic service discovery of the node.
Up to now, such a discovery changed the services of the cluster regardless of the selected options:
- It added a newly found clustered service, even if Monitor undecided services was not selected. The periodic service discovery also ignored the service filters of its rule for these services.
- It took over newly found parameters of a clustered service without Update service parameters, and newly found labels without Update service labels.
For example, a bulk discovery of a node with only Remove vanished services added a newly found clustered service to the cluster. Werk #22647 fixed this for the discovery of the cluster itself.
Now a node's discovery applies the selected options to the services of its cluster in the same way as to its own services. It still changes them where the options ask for it. A bulk discovery of a node with Monitor undecided services adds a newly found clustered service to the cluster, even if the cluster itself is not selected. The periodic service discovery relies on this. It does not run on clusters, and it maintains their services through the discoveries of the nodes. If the cluster already monitors a newly found service through another node, the node's discovery adds the node's own entry for it only with Monitor undecided services as well. A discovery of the cluster gives the node this entry regardless of the options. Vanished clustered services are handled as before.
This changes the periodic service discovery of a node if its rule Periodic service discovery updates services under Automatically update service configuration, and one of these applies:
- Not all options for services are selected. For example, with only Monitor undecided services, the periodic service discovery used to take over the changed parameters and labels of clustered services as well. With only Remove vanished services, it used to add new clustered services.
- Service filters are set. They used to have no effect on new clustered services.
Nothing changes with the default parameters, which update only host labels. If you want the periodic service discovery to maintain clustered services, select the options and set the service filters alike in the rule Periodic service discovery for the cluster and for its nodes.
Details
- Class:
- Bug Fixes
- Level:
- Prominent
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p24Not yet releasedAll Editions
- 2.4.0p44Not yet releasedAll Editions