ArangoDB v3.4 reached End of Life (EOL) and is no longer supported.
This documentation is outdated. Please see the most recent version here: Latest Docs
HTTP Interface for Administration and Monitoring
This is an introduction to ArangoDB’s HTTP interface for administration and monitoring of the server.
Logs
Read global logs from the server
returns the server logs
GET /_admin/log
Query Parameters
- upto (string, optional):
Returns all log entries up to log level upto. Note that upto must be:
- fatal or 0
- error or 1
- warning or 2
- info or 3
- debug or 4 The default value is info.
-
level (string, optional): Returns all log entries of log level level. Note that the query parameters upto and level are mutually exclusive.
-
start (number, optional): Returns all log entries such that their log entry identifier (lid value) is greater or equal to start.
-
size (number, optional): Restricts the result to at most size log entries.
-
offset (number, optional): Starts to return log entries skipping the first offset log entries. offset and size can be used for pagination.
-
search (string, optional): Only return the log entries containing the text specified in search.
- sort (string, optional): Sort the log entries either ascending (if sort is asc) or descending (if sort is desc) according to their lid values. Note that the lid imposes a chronological order. The default value is asc.
Returns fatal, error, warning or info log messages from the server’s global log. The result is a JSON object with the following attributes:
Responses
HTTP 200:
-
lid (array of strings): a list of log entry identifiers. Each log message is uniquely identified by its @LIT{lid} and the identifiers are in ascending order.
-
level (string): A list of the log levels for all log entries.
-
timestamp (array of strings): a list of the timestamps as seconds since 1970-01-01 for all log entries.
-
text (string): a list of the texts of all log entries
-
topic (string): a list of the topics of all log entries
-
totalAmount (integer): the total amount of log entries before pagination.
HTTP 400: is returned if invalid values are specified for upto or level.
HTTP 500: is returned if the server cannot generate the result due to an out-of-memory error.
Return the current server log level
returns the current log level settings
GET /_admin/log/level
Returns the server’s current log level settings. The result is a JSON object with the log topics being the object keys, and the log levels being the object values.
Responses
HTTP 200: is returned if the request is valid
HTTP 500: is returned if the server cannot generate the result due to an out-of-memory error.
Modify and return the current server log level
modifies the current log level settings
PUT /_admin/log/level
Request Body
-
agency (string, optional): One of the possible log levels.
-
agencycomm (string, optional): One of the possible log levels.
-
aql (string, optional): One of the possible log levels.
-
arangosearch (string, optional): One of the possible log levels.
-
audit-authentication (string, optional): One of the possible log levels (Enterprise Edition only).
-
audit-collection (string, optional): One of the possible log levels (Enterprise Edition only).
-
audit-database (string, optional): One of the possible log levels (Enterprise Edition only).
-
audit-documentation (string, optional): One of the possible log levels (Enterprise Edition only).
-
audit-view (string, optional): One of the possible log levels (Enterprise Edition only).
-
audit-service (string, optional): One of the possible log levels (Enterprise Edition only).
-
authentication (string, optional): One of the possible log levels.
-
authorization (string, optional): One of the possible log levels.
-
cache (string, optional): One of the possible log levels.
-
cluster (string, optional): One of the possible log levels.
-
collector (string, optional): One of the possible log levels.
-
communication (string, optional): One of the possible log levels.
-
compactor (string, optional): One of the possible log levels.
-
config (string, optional): One of the possible log levels.
-
datafiles (string, optional): One of the possible log levels.
-
development (string, optional): One of the possible log levels.
-
dump (string, optional): One of the possible log levels.
-
engines (string, optional): One of the possible log levels.
-
flush (string, optional): One of the possible log levels.
-
general (string, optional): One of the possible log levels.
-
graphs (string, optional): One of the possible log levels.
-
heartbeat (string, optional): One of the possible log levels.
-
httpclient (string, optional): One of the possible log levels.
-
ldap (string, optional): One of the possible log levels (Enterprise Edition only).
-
maintenance (string, optional): One of the possible log levels.
-
memory (string, optional): One of the possible log levels.
-
mmap (string, optional): One of the possible log levels.
-
performance (string, optional): One of the possible log levels.
-
pregel (string, optional): One of the possible log levels.
-
queries (string, optional): One of the possible log levels.
-
replication (string, optional): One of the possible log levels.
-
requests (string, optional): One of the possible log levels.
-
restore (string, optional): One of the possible log levels.
-
rocksdb (string, optional): One of the possible log levels.
-
ssl (string, optional): One of the possible log levels.
-
startup (string, optional): One of the possible log levels.
-
statistics (string, optional): One of the possible log levels.
-
supervision (string, optional): One of the possible log levels.
-
syscall (string, optional): One of the possible log levels.
-
threads (string, optional): One of the possible log levels.
-
trx (string, optional): One of the possible log levels.
-
v8 (string, optional): One of the possible log levels.
-
views (string, optional): One of the possible log levels.
Modifies and returns the server’s current log level settings. The request body must be a JSON object with the log topics being the object keys and the log levels being the object values.
The result is a JSON object with the adjusted log topics being the object keys, and the adjusted log levels being the object values.
It can set the log level of all facilities by only specifying the log level as string without json.
Possible log levels are:
- FATAL - There will be no way out of this. ArangoDB will go down after this message.
- ERROR - This is an error. you should investigate and fix it. It may harm your production.
- WARNING - This may be serious application-wise, but we don’t know.
- INFO - Something has happened, take notice, but no drama attached.
- DEBUG - output debug messages
- TRACE - trace - prepare your log to be flooded - don’t use in production.
Responses
HTTP 200: is returned if the request is valid
HTTP 400: is returned when the request body contains invalid JSON.
HTTP 405: is returned when an invalid HTTP method is used.
HTTP 500: is returned if the server cannot generate the result due to an out-of-memory error.
Statistics
Read the statistics
return the statistics information
GET /_admin/statistics
Returns the statistics information. The returned object contains the statistics figures grouped together according to the description returned by _admin/statistics-description. For instance, to access a figure userTime from the group system, you first select the sub-object describing the group stored in system and in that sub-object the value for userTime is stored in the attribute of the same name.
In case of a distribution, the returned object contains the total count in count and the distribution list in counts. The sum (or total) of the individual values is returned in sum.
Responses
HTTP 200: Statistics were returned successfully.
-
error (boolean): boolean flag to indicate whether an error occurred (false in this case)
-
code (integer): the HTTP status code - 200 in this case
-
time (integer): the current server timestamp
-
errorMessage (string): a descriptive error message
-
enabled (boolean): true if the server has the statistics module enabled. If not, don’t expect any values.
-
system (object): metrics gathered from the system about this process; may depend on the host OS
-
minorPageFaults (integer): pagefaults
-
majorPageFaults (integer): pagefaults
-
userTime (number): the user CPU time used by the server process
-
systemTime (number): the system CPU time used by the server process
-
numberOfThreads (integer): the number of threads in the server
-
residentSize (integer): RSS of process
-
residentSizePercent (number): RSS of process in %
-
virtualSize (integer): VSS of the process
-
-
client (object): information about the connected clients and their resource usage
-
connectionTime (object): total connection times
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
totalTime (object): the system time
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
requestTime (object): the request times
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
queueTime (object): the time requests were queued waiting for processing
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
ioTime (object): IO Time
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
bytesSent (object): number of bytes sent to the clients
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
bytesReceived (object): number of bytes received from the clients
-
sum (number): summarized value of all counts
-
count (integer): number of values summarized
-
counts (array of integers): array containing the values
-
-
httpConnections (integer): the number of open http connections
-
-
http (object): the numbers of requests by Verb
-
requestsTotal (integer): total number of http requests
-
requestsAsync (integer): total number of asynchronous http requests
-
requestsGet (integer): No of requests using the GET-verb
-
requestsHead (integer): No of requests using the HEAD-verb
-
requestsPost (integer): No of requests using the POST-verb
-
requestsPut (integer): No of requests using the PUT-verb
-
requestsPatch (integer): No of requests using the PATCH-verb
-
requestsDelete (integer): No of requests using the DELETE-verb
-
requestsOptions (integer): No of requests using the OPTIONS-verb
-
requestsOther (integer): No of requests using the none of the above identified verbs
-
-
server (object): statistics of the server
-
uptime (integer): time the server is up and running
-
physicalMemory (integer): available physical memory on the server
-
v8Context (object): Statistics about the V8 javascript contexts
-
available (integer): the number of currently spawnen V8 contexts
-
busy (integer): the number of currently active V8 contexts
-
dirty (integer): the number of contexts that were previously used, and should now be garbage collected before being re-used
-
free (integer): the number of V8 contexts that are free to use
-
max (integer): the total number of V8 contexts we may spawn as configured by --javascript.v8-contexts
-
memory (array): a list of V8 memory / garbage collection watermarks; Refreshed on every garbage collection run; Preserves min/max memory used at that time for 10 seconds
-
contextId (integer): ID of the context this set of memory statistics is from
-
tMax (number): the timestamp where the 10 seconds interval started
-
countOfTimes (integer): how many times was the garbage collection run in these 10 seconds
-
heapMax (integer): High watermark of all garbage collection runs in 10 seconds
-
heapMin (integer): Low watermark of all garbage collection runs in these 10 seconds
-
-
-
threads (object): Statistics about the server worker threads (excluding V8 specific or jemalloc specific threads and system threads)
-
scheduler-threads (integer): The number of spawned worker threads
-
in-progress (integer): The number of currently busy worker threads
-
queued (integer): The number of jobs queued up waiting for worker threads becomming available
-
-
Examples
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/statistics
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"time" : 1600270835.1133084,
"enabled" : true,
"system" : {
"minorPageFaults" : 113084,
"majorPageFaults" : 0,
"userTime" : 11.27,
"systemTime" : 5.34,
"numberOfThreads" : 70,
"residentSize" : 340238336,
"residentSizePercent" : 0.0025173136911790135,
"virtualSize" : 2582069248
},
"client" : {
"httpConnections" : 1,
"connectionTime" : {
"sum" : 0,
"count" : 0,
"counts" : [
0,
0,
0,
0
]
},
"totalTime" : {
"sum" : 10.247559309005737,
"count" : 34548,
"counts" : [
34517,
28,
2,
0,
0,
1,
0
]
},
"requestTime" : {
"sum" : 7.185829162597656,
"count" : 34548,
"counts" : [
34517,
28,
2,
0,
0,
1,
0
]
},
"queueTime" : {
"sum" : 0,
"count" : 0,
"counts" : [
0,
0,
0,
0,
0,
0,
0
]
},
"ioTime" : {
"sum" : 3.061730146408081,
"count" : 34548,
"counts" : [
34548,
0,
0,
0,
0,
0,
0
]
},
"bytesSent" : {
"sum" : 10330585,
"count" : 34548,
"counts" : [
294,
33822,
394,
36,
2,
0
]
},
"bytesReceived" : {
"sum" : 8110464,
"count" : 34548,
"counts" : [
33785,
763,
0,
0,
0,
0
]
}
},
"http" : {
"requestsTotal" : 34549,
"requestsAsync" : 0,
"requestsGet" : 946,
"requestsHead" : 0,
"requestsPost" : 33468,
"requestsPut" : 32,
"requestsPatch" : 2,
"requestsDelete" : 101,
"requestsOptions" : 0,
"requestsOther" : 0
},
"server" : {
"uptime" : 23.72276496887207,
"physicalMemory" : 135159291904,
"v8Context" : {
"available" : 2,
"busy" : 1,
"dirty" : 0,
"free" : 1,
"max" : 64,
"memory" : [
{
"contextId" : 0,
"tMax" : 1600270833.5147326,
"countOfTimes" : 19,
"heapMax" : 24563712,
"heapMin" : 15440712
},
{
"contextId" : 1,
"tMax" : 1600270834.6235137,
"countOfTimes" : 8,
"heapMax" : 16137864,
"heapMin" : 0
}
]
},
"threads" : {
"scheduler-threads" : 3,
"in-progress" : 2,
"queued" : 2,
"current-fifo1" : 0,
"fifo1-size" : 1048576,
"current-fifo2" : 0,
"fifo2-size" : 4096,
"current-fifo3" : 0,
"fifo3-size" : 4096
}
},
"error" : false,
"code" : 200
}
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/statistics
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
Statistics description
fetch descriptive info of statistics
GET /_admin/statistics-description
Returns a description of the statistics returned by /_admin/statistics. The returned objects contains an array of statistics groups in the attribute groups and an array of statistics figures in the attribute figures.
A statistics group is described by
- group: The identifier of the group.
- name: The name of the group.
- description: A description of the group.
A statistics figure is described by
- group: The identifier of the group to which this figure belongs.
- identifier: The identifier of the figure. It is unique within the group.
- name: The name of the figure.
- description: A description of the figure.
- type: Either current, accumulated, or distribution.
- cuts: The distribution vector.
- units: Units in which the figure is measured.
Responses
HTTP 200: Description was returned successfully.
-
groups (array): A statistics group
-
group (string): The identifier of the group.
-
name (string): The name of the group.
-
description (string): A description of the group.
-
-
figures (array): A statistics figure
-
group (string): The identifier of the group to which this figure belongs.
-
identifier (string): The identifier of the figure. It is unique within the group.
-
name (string): The name of the figure.
-
description (string): A description of the figure.
-
type (string): Either current, accumulated, or distribution.
-
cuts (string): The distribution vector.
-
units (string): Units in which the figure is measured.
-
-
code (integer): the HTTP status code
-
error (boolean): the error, false in this case
Examples
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/statistics-description
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
{
"groups" : [
{
"group" : "system",
"name" : "Process Statistics",
"description" : "Statistics about the ArangoDB process"
},
{
"group" : "client",
"name" : "Client Connection Statistics",
"description" : "Statistics about the connections."
},
{
"group" : "http",
"name" : "HTTP Request Statistics",
"description" : "Statistics about the HTTP requests."
},
{
"group" : "server",
"name" : "Server Statistics",
"description" : "Statistics about the ArangoDB server"
}
],
"figures" : [
{
"group" : "system",
"identifier" : "userTime",
"name" : "User Time",
"description" : "Amount of time that this process has been scheduled in user mode, measured in seconds.",
"type" : "accumulated",
"units" : "seconds"
},
{
"group" : "system",
"identifier" : "systemTime",
"name" : "System Time",
"description" : "Amount of time that this process has been scheduled in kernel mode, measured in seconds.",
"type" : "accumulated",
"units" : "seconds"
},
{
"group" : "system",
"identifier" : "numberOfThreads",
"name" : "Number of Threads",
"description" : "Number of threads in the arangod process.",
"type" : "current",
"units" : "number"
},
{
"group" : "system",
"identifier" : "residentSize",
"name" : "Resident Set Size",
"description" : "The total size of the number of pages the process has in real memory. This is just the pages which count toward text, data, or stack space. This does not include pages which have not been demand-loaded in, or which are swapped out. The resident set size is reported in bytes.",
"type" : "current",
"units" : "bytes"
},
{
"group" : "system",
"identifier" : "residentSizePercent",
"name" : "Resident Set Size",
"description" : "The percentage of physical memory used by the process as resident set size.",
"type" : "current",
"units" : "percent"
},
{
"group" : "system",
"identifier" : "virtualSize",
"name" : "Virtual Memory Size",
"description" : "On Windows, this figure contains the total amount of memory that the memory manager has committed for the arangod process. On other systems, this figure contains The size of the virtual memory the process is using.",
"type" : "current",
"units" : "bytes"
},
{
"group" : "system",
"identifier" : "minorPageFaults",
"name" : "Minor Page Faults",
"description" : "The number of minor faults the process has made which have not required loading a memory page from disk. This figure is not reported on Windows.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "system",
"identifier" : "majorPageFaults",
"name" : "Major Page Faults",
"description" : "On Windows, this figure contains the total number of page faults. On other system, this figure contains the number of major faults the process has made which have required loading a memory page from disk.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "client",
"identifier" : "httpConnections",
"name" : "Client Connections",
"description" : "The number of connections that are currently open.",
"type" : "current",
"units" : "number"
},
{
"group" : "client",
"identifier" : "totalTime",
"name" : "Total Time",
"description" : "Total time needed to answer a request.",
"type" : "distribution",
"cuts" : [
0.01,
0.05,
0.1,
0.2,
0.5,
1
],
"units" : "seconds"
},
{
"group" : "client",
"identifier" : "requestTime",
"name" : "Request Time",
"description" : "Request time needed to answer a request.",
"type" : "distribution",
"cuts" : [
0.01,
0.05,
0.1,
0.2,
0.5,
1
],
"units" : "seconds"
},
{
"group" : "client",
"identifier" : "queueTime",
"name" : "Queue Time",
"description" : "Queue time needed to answer a request.",
"type" : "distribution",
"cuts" : [
0.01,
0.05,
0.1,
0.2,
0.5,
1
],
"units" : "seconds"
},
{
"group" : "client",
"identifier" : "bytesSent",
"name" : "Bytes Sent",
"description" : "Bytes sents for a request.",
"type" : "distribution",
"cuts" : [
250,
1000,
2000,
5000,
10000
],
"units" : "bytes"
},
{
"group" : "client",
"identifier" : "bytesReceived",
"name" : "Bytes Received",
"description" : "Bytes received for a request.",
"type" : "distribution",
"cuts" : [
250,
1000,
2000,
5000,
10000
],
"units" : "bytes"
},
{
"group" : "client",
"identifier" : "connectionTime",
"name" : "Connection Time",
"description" : "Total connection time of a client.",
"type" : "distribution",
"cuts" : [
0.1,
1,
60
],
"units" : "seconds"
},
{
"group" : "http",
"identifier" : "requestsTotal",
"name" : "Total requests",
"description" : "Total number of HTTP requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsAsync",
"name" : "Async requests",
"description" : "Number of asynchronously executed HTTP requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsGet",
"name" : "HTTP GET requests",
"description" : "Number of HTTP GET requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsHead",
"name" : "HTTP HEAD requests",
"description" : "Number of HTTP HEAD requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsPost",
"name" : "HTTP POST requests",
"description" : "Number of HTTP POST requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsPut",
"name" : "HTTP PUT requests",
"description" : "Number of HTTP PUT requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsPatch",
"name" : "HTTP PATCH requests",
"description" : "Number of HTTP PATCH requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsDelete",
"name" : "HTTP DELETE requests",
"description" : "Number of HTTP DELETE requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsOptions",
"name" : "HTTP OPTIONS requests",
"description" : "Number of HTTP OPTIONS requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "http",
"identifier" : "requestsOther",
"name" : "other HTTP requests",
"description" : "Number of other HTTP requests.",
"type" : "accumulated",
"units" : "number"
},
{
"group" : "server",
"identifier" : "uptime",
"name" : "Server Uptime",
"description" : "Number of seconds elapsed since server start.",
"type" : "current",
"units" : "seconds"
},
{
"group" : "server",
"identifier" : "physicalMemory",
"name" : "Physical Memory",
"description" : "Physical memory in bytes.",
"type" : "current",
"units" : "bytes"
}
],
"error" : false,
"code" : 200
}
shell> curl --header 'accept: application/json' --dump - http://localhost:8529/_admin/statistics-description
HTTP/1.1 OK
content-type: application/json; charset=utf-8
x-content-type-options: nosniff
Cluster
Return whether or not a server is in read-only mode
Return the mode of this server (read-only or default)
GET /_admin/server/mode
Return mode information about a server. The json response will contain
a field mode
with the value readonly
or default
. In a read-only server
all write operations will fail with an error code of 1004
(ERROR_READ_ONLY).
Creating or dropping of databases and collections will also fail with error code 11
(ERROR_FORBIDDEN).
This is a public API so it does not require authentication.
Responses
HTTP 200: This API will return HTTP 200 if everything is ok
Update whether or not a server is in read-only mode
Update the mode of this server (read-only or default)
PUT /_admin/server/mode
Request Body
- mode (string, required):
The mode of the server
readonly
ordefault
.
Update mode information about a server. The json response will contain
a field mode
with the value readonly
or default
. In a read-only server
all write operations will fail with an error code of 1004
(ERROR_READ_ONLY).
Creating or dropping of databases and collections will also fail with error code 11
(ERROR_FORBIDDEN).
This API so it does require authentication and administrative server rights.
Responses
HTTP 200: This API will return HTTP 200 if everything is ok
HTTP 401: if the request was not authenticated as a user with sufficient rights
Return id of a server in a cluster
Get to know the internal id of the server
GET /_admin/server/id
Returns the id of a server in a cluster. The request will fail if the server is not running in cluster mode.
Responses
HTTP 200: Is returned when the server is running in cluster mode.
HTTP 500: Is returned when the server is not running in cluster mode.
Return the role of a server in a cluster
Return the role of a server in a cluster
GET /_admin/server/role
Returns the role of a server in a cluster. The role is returned in the role attribute of the result. Possible return values for role are:
- SINGLE: the server is a standalone server without clustering
- COORDINATOR: the server is a Coordinator in a cluster
- PRIMARY: the server is a DBServer in a cluster
- SECONDARY: this role is not used anymore
- AGENT: the server is an Agency node in a cluster
- UNDEFINED: in a cluster, UNDEFINED is returned if the server role cannot be determined.
Responses
HTTP 200: Is returned in all cases.
-
error (boolean): always false
-
code (integer): the HTTP status code, always 200
-
errorNum (integer): the server error number
-
role (string): one of [ SINGLE, COORDINATOR, PRIMARY, SECONDARY, AGENT, UNDEFINED]
Return whether or not a server is available
Return whether or not a server is available
GET /_admin/server/availability
Return availability information about a server.
This is a public API so it does not require authentication. It is meant to be used only in the context of server monitoring only.
Responses
HTTP 200: This API will return HTTP 200 in case the server is up and running and usable for arbitrary operations, is not set to read-only mode and is currently not a follower in case of an active failover setup.
HTTP 503: HTTP 503 will be returned in case the server is during startup or during shutdown, is set to read-only mode or is currently a follower in an active failover setup.
Queries statistics of DBserver
allows to query the statistics of a DBserver in the cluster
GET /_admin/clusterStatistics
Query Parameters
- DBserver (string, required):
Queries the statistics of the given DBserver
Responses
HTTP 200:
HTTP 400: ID of a DBserver
HTTP 403:
Queries the health of cluster for monitoring
Returns the health of the cluster as assessed by the supervision (agency)
GET /_admin/cluster/health
Queries the health of the cluster for monitoring purposes. The response is a JSON object, containing the standard code
, error
, errorNum
, and errorMessage
fields as appropriate. The endpoint-specific fields are as follows:
ClusterId
: A UUID string identifying the clusterHealth
: An object containing a descriptive sub-object for each node in the cluster.<nodeID>
: Each entry inHealth
will be keyed by the node ID and contain the following attributes:Endpoint
: A string representing the network endpoint of the server.Role
: The role the server plays. Possible values are"AGENT"
,"COORDINATOR"
, and"DBSERVER"
.CanBeDeleted
: Boolean representing whether the node can safely be removed from the cluster.Version
: Version String of ArangoDB used by that node.Engine
: Storage Engine used by that node.Status
: A string indicating the health of the node as assessed by the supervision (agency). This should be considered primary source of truth for coordinator and dbservers node health. If the node is responding normally to requests, it is"GOOD"
. If it has missed one heartbeat, it is"BAD"
. If it has been declared failed by the supervision, which occurs after missing heartbeats for about 15 seconds, it will be marked"FAILED"
.
Additionally it will also have the following attributes for:
Coordinators and DBServers
SyncStatus
: The last sync status reported by the node. This value is primarily used to determine the value ofStatus
. Possible values include"UNKNOWN"
,"UNDEFINED"
,"STARTUP"
,"STOPPING"
,"STOPPED"
,"SERVING"
,"SHUTDOWN"
.LastAckedTime
: ISO 8601 timestamp specifying the last heartbeat received.ShortName
: A string representing the shortname of the server, e.g."Coordinator0001"
.Timestamp
: ISO 8601 timestamp specifying the last heartbeat received. (deprecated)Host
: An optional string, specifying the host machine if known.
Coordinators only
AdvertisedEndpoint
: A string representing the advertised endpoint, if set. (e.g. external IP address or load balancer, optional)
Agents
Leader
: ID of the agent this node regards as leader.Leading
: Whether this agent is the leader (true) or not (false).LastAckedTime
: Time since lastacked
in seconds.
Responses
HTTP 200:
Other
Reloads the routing information
Reload the routing table.
POST /_admin/routing/reload
Reloads the routing information from the collection routing.
Responses
HTTP 200: Routing information was reloaded successfully.