aboutsummaryrefslogtreecommitdiffstats
path: root/service-monitor/src/test/java/com/yahoo/vespa/service/health/HealthMonitorManagerTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Update copyrightJon Bratseth2023-10-091-2/+2
|
* Remove usages in service-monitor as welljonmv2023-03-301-3/+2
|
* Use DomainName instead of the stricter HostName in duper-modeljonmv2023-03-301-2/+2
|
* Revert "Revert collect(Collectors.toList())"Henning Baldersheim2022-12-041-1/+1
|
* Revert collect(Collectors.toList())Henning Baldersheim2022-12-041-1/+1
|
* collect(Collectors.toList()) -> toList()Henning Baldersheim2022-12-021-1/+1
|
* Revert "Merge pull request #22072 from ↵jonmv2022-04-091-3/+3
| | | | | | | vespa-engine/jonmv/unify-hostname-classes" This reverts commit 87e5b33c003d07ca585d73e0166857fe22b4c16f, reversing changes made to 80b96d32550ae0df59572a58cd62f507e8068c2c.
* Revert "Merge pull request #22068 from ↵jonmv2022-04-081-3/+3
| | | | | | | vespa-engine/jonmv/unify-hostname-classes" This reverts commit 8aa4c83df5ce7843c040afa41706fcc7c3afd030, reversing changes made to f95ad44fae879da9db19f73eabe62c53baeb0c36.
* Move ID part to HostName in config-provisioningjonmv2022-04-081-1/+1
|
* Revert "Merge pull request #22065 from ↵jonmv2022-04-081-4/+4
| | | | | | | vespa-engine/revert-22049-jonmv/unify-hostname-classes" This reverts commit 4ffc54339186574491a32b3166223c3fc50ba8fe, reversing changes made to db9e570a36decb24e6cb13f44bd0ff444ab762e3.
* Revert "Jonmv/unify hostname classes"Jon Marius Venstad2022-04-081-4/+4
|
* Use one HostName class (that is not for JSON)Jon Marius Venstad2022-04-081-4/+4
|
* Update 2018 copyright notices.gjoranv2021-10-071-1/+1
|
* Use mockito-core 3.1.0Håkon Hallingstad2019-10-181-1/+1
|
* Simplify health monitoringValerij Fredriksen2019-06-071-60/+0
|
* Remove MONITOR_TENANT_HOST_HEALTH flagValerij Fredriksen2019-06-011-43/+11
|
* Metadata about /state/v1/health statusHåkon Hallingstad2019-01-251-6/+7
| | | | | | | | | | | | | The service monitor uses /state/v1/health to monitor config servers and the host admins (but not yet tenant host admins). This commit adds some metadata about the status of a service: - The time the status was last checked - The time the status changed to the current This can be used to e.g. make more intelligent decisions in the Orchestrator, e.g. only allowing a service to suspend if it has been DOWN longer than X seconds (to avoid spurious DOWN to break redundancy and uptime guarantees).
* Support monitoring health of tenant hostsHåkon Hallingstad2019-01-161-9/+84
|
* Remove healthmonitor-monitorinfra, dupermodel-contains-infra, ↵Håkon Hallingstad2019-01-141-24/+7
| | | | dupermodel-use-configserverconfig, proxyhost-uses-real-orchestrator, and confighost-uses-real-orchestrator flags
* Typed flag classesHåkon Hallingstad2019-01-031-3/+2
| | | | | | | | | | This reintroduces the non-generic flag classes: - a value() returns the primitive type for flags wrapping a primitive type - easier to use in testing - Serializer is moved to internals of typed class Defines the flag backed by boolean BooleanFlag instead of FeatureFlag since not all boolean flags are necessarily guarding a feature.
* Configserver flags REST APIHåkon Hallingstad2018-12-301-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new ZooKeeper backed flag source. It is defined in a new module configserver-flags to allow as many as possible config server modules to depend on it by minimizing dependencies. The content of the ZK backed flag source can be viewed and modified through REST API on the config server/controller. The data stored per flag looks like { "rules": [ { "conditions": [ { "type": "whitelist", "dimension": "hostname", "values": ["host1"] } ], "value": true } ] } typical for enabling a feature flag on host1. 2 types of conditions are so far supported: whitelist and blacklist. All the conditions must match in order for the value to apply. If the value is null (or absent), the default value will be used. At the time the flag's value is retrieved, it is resolved against the conditions with the current zone, hostname, and/or application. The same data structure is used for FileFlagSource for files in /etc/vespa/flags with the ".2" extension. The FlagSource component injected in the config server is changed to: 1. Return the flag value if specified in /etc/vespa/flags, or otherwise 2. return flag value from ZooKeeper (same as REST API) The current flags (module) is also changed: - All flags must be defined in com.yahoo.vespa.flags.Flags. This allows the ZK backed flag source additional sanity checking when modifying flags. - If it makes sense to have different flag value depending on e.g. the application, then at some point before the value is retrieved, one has to bind the flag to that application (using with() to set up the fetch vector). Future changes would be to 0. make a merged FlagSource in host admin, 1. add support for viewing and modifying feature flags in dashboard, 2. in hv tool.
* Use thread pool for health monitoring in service-monitorHåkon Hallingstad2018-12-171-2/+9
| | | | | This is necessary to avoid using too many threads when monitoring the host-admin on the tenant Docker hosts.
* Monitor health of host infra applicationsHåkon Hallingstad2018-12-081-1/+72
|
* Simplify infrastructure applicationsHåkon Hallingstad2018-12-071-2/+14
|
* Make service monitors aware of infra applications in duper model.Håkon Hallingstad2018-12-061-0/+34
- Notify monitors of infrastructure application activation. Live-flipping the content of the duper model is non-trivial and has been removed. - Split out DuperModel as a simple mutable and thread-unsafe container of the applications in the duper model, that also handles calls listeners on changes. The previous DuperModel has been renamed to DuperModelManager. - Replace SuperModelProvider::snapshot method (fast but difficult to use right) with registerListener. - Shorten the fully qualified package names by 1-2 levels for mosts classes. Next steps: - Make HA query the real orchestrator - Start experimenting with health monitoring of infra apps