The starter exposes an HTTP(s) API that is used to query information of the starter cluster, shutdown / remove starters etc.
Some part of the HTTP API is internal and is not supposed to be used by outside clients.
/endpoints
Returns URL's of all starters, coordinators & agents in the cluster.
A JSON object is returned with the following fields:
starters
An array of URL's of all starters in the cluster.coordinators
An array of URL's of all coordinators in the cluster.agents
An array of URL's of all agents in the cluster.Status codes:
Example:
{
"starters": [
"http://localhost:8528",
"http://localhost:8533",
"http://localhost:8538"
],
"agents": [
"http://localhost:8531",
"http://localhost:8536",
"http://localhost:8541"
],
"coordinators": [
"http://localhost:8529",
"http://localhost:8534",
"http://localhost:8539"
]
}
/process
Returns status information of all of the running processes.
A JSON object is returned with the following fields:
servers-started
A boolean that becomes true after all database servers
launched by this starter have been started.
servers
An array with a JSON object for each database server launch by this starter. These JSON objects contain the following fields:
type
Indicate type of database server agent|coordinator|dbserver|single
ip
IP address the database server is running on.port
TCP port used by the database server.pid
Process ID of the database server (0 when database
server is running in docker)container-id
Identifier of the docker container that is running
the database server.container-ip
IP address of the docker container that is running
the database server.is-secure
Boolean indicating the use of TLS for this
database server.Status codes:
Example:
{
"servers-started": true,
"servers": [
{
"type": "coordinator",
"ip": "192.168.23.10",
"port": 8529,
"pid": 12345,
"container-id": "1234567889A",
"container-ip": "172.17.0.2",
"is-secure": true
}
]
}
/logs/agent
Returns the contents of the agent log file as text/plain
content.
Status codes:
/logs/dbserver
Returns the contents of the dbserver log file as text/plain
content.
Status codes:
/logs/coordinator
Returns the contents of the coordinator log file as text/plain
content.
Status codes:
/logs/single
Returns the contents of the single server log file as text/plain
content.
Status codes:
/version
Returns a JSON object with the version information.
The JSON object contains the following fields:
version
Semver compatible version of the starter.build
Git hash of the starter.Status codes:
Example:
{
"version": "0.8.0+git",
"build": "e6dbb08"
}
/shutdown
Initiates a shutdown of the process and all servers started by it.
If you passing a mode=goodbye
query to the URL, the starter will
remove all database servers from the cluster and ask the starter
master to be removed from the cluster configuration.
Currently a starter does not accept mode=goodbye
when is has launched
an agent.
The request does not expect any input.
Returns OK
as text/plain on success.
Status codes:
/database-auto-upgrade
Initiates an upgrade process of all ArangoDB servers started by this starter.
The request does not expect any input.
Returns OK
as text/plain on success.
Status codes:
/id
Internal API used to get the ID number of the starter. Not for external use.
/hello
Internal API used to join a master. Not for external use.
/goodbye
Internal API used to leave a master for good. Not for external use.
/cb/masterChanged
Internal API used to notify a starter that the master URL has changed in the agency.
All API methods return an HTTP status code to indicate success or failure.
The following status codes are used.
Location
header.Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )