aboutsummaryrefslogtreecommitdiffstats
path: root/configdefinitions/src/vespa/sentinel.def
blob: 07becf6cccf3b9063df2807d4855502d9781761d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
namespace=cloud.config

## The port where sentinel should run its telnet interface
port.telnet int default=19098

## The port where sentinel should run its RPC interface
port.rpc int default=19097

## Meta info about the application running on this node. All values are
## exported to child processes as $VESPA_APPLICATION_TENANT,
## $VESPA_APPLICATION_NAME, $VESPA_APPLICATION_ENVIRONMENT, $VESPA_APPLICATION_REGION
## and $VESPA_APPLICATION_INSTANCE
application.tenant string default="default"
application.name string default="default"
application.environment string default="default"
application.instance string default="default"
application.region string default="default"

# Connectivity checks run before starting services and measure how
# many nodes in the Vespa cluster we can connect to and how many of
# those that can connect back to us. We delay starting services
# if we have more problems than the following limits allow:

## Percentage of nodes that must be up and fully OK, minimum
connectivity.minOkPercent int default=50

## Absolute number of nodes with confirmed network connectivity problems, maximum
connectivity.maxBadCount int default=1

## The command to run. This will be run by sh -c, and the following
## environment variables are defined: $ROOT, $VESPA_SERVICE_NAME,
## $VESPA_CONFIG_ID
##
## stdin points to /dev/null
## stdout and stderr connected to sentinel via pipe on startup.
service[].command string

## Extra environment variables that will be exposed for this service
service[].environ[].varname string
service[].environ[].varvalue string

## Tune log-level settings for specific components
service[].logctl[].componentSpec string
service[].logctl[].levelsModSpec string

## The command to run before stopping service. The same properties as for
## startup command holds.
service[].preShutdownCommand string default=""

## The service name for this service.  Exported in VESPA_SERVICE_NAME
## environment variable.  All services must have unique names.
## The service name is used by to start/stop services, and to list
## them. It is also logged in the service field in every log message.
service[].name string

## Should the service be auto-started by configd as soon as it starts up,
## or must it be started manually?  Almost always true.
service[].autostart bool default=false

## Should the service automatically be restarted if it exits?
service[].autorestart bool default=true

## Config reference to the service being started.
## Exported in the VESPA_CONFIG_ID environment variable.
service[].id reference

## Affinity of this service towards a CPU socket
service[].affinity.cpuSocket int default=-1