{
"basePath": "/",
"swaggerVersion": "1.1",
"apiVersion": "0.1",
"apis": [
{
"operations": [
{
"errorResponses": [
{
"reason": "is returned if the logger was started successfully, or was already running. ",
"code": "200"
},
{
"reason": "is returned when an invalid HTTP method is used. ",
"code": "405"
},
{
"reason": "is returned if the logger could not be started. ",
"code": "500"
}
],
"parameters": [],
"notes": "Starts the server's replication logger. Will do nothing if the replication logger is already running.
The body of the response contains a JSON object with the following attributes:
- running: will contain true
",
"summary": "starts the replication logger",
"httpMethod": "PUT",
"examples": "Starts the replication logger.
unix> curl -X PUT --dump - http://localhost:8529/_api/replication/logger-start\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"running\" : true \n}\n\n
unix> curl -X PUT --dump - http://localhost:8529/_api/replication/logger-stop\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"running\" : false \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastLogTick\" : \"397558183\", \n \"totalEvents\" : 2, \n \"time\" : \"2014-01-20T21:04:23Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.6\", \n \"serverId\" : \"190048212006786\" \n }, \n \"clients\" : [ ] \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastLogTick\" : \"397885863\", \n \"totalEvents\" : 3, \n \"time\" : \"2014-01-20T21:04:24Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.6\", \n \"serverId\" : \"190048212006786\" \n }, \n \"clients\" : [ ] \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-config\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"autoStart\" : false, \n \"logRemoteChanges\" : false, \n \"maxEvents\" : 1048576, \n \"maxEventsSize\" : 134217728 \n}\n\n
unix> curl -X PUT --data @- --dump - http://localhost:8529/_api/replication/logger-config\n{\"logRemoteChanges\":true,\"maxEvents\":1048576}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"autoStart\" : false, \n \"logRemoteChanges\" : true, \n \"maxEvents\" : 1048576, \n \"maxEventsSize\" : 134217728 \n}\n\n
unix> curl -X PUT --data @- --dump - http://localhost:8529/_api/replication/logger-config\n{\"logRemoteChanges\":false,\"maxEvents\":16384,\"maxEventsSize\":16777216}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"autoStart\" : false, \n \"logRemoteChanges\" : false, \n \"maxEvents\" : 16384, \n \"maxEventsSize\" : 16777216 \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=398279079\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\nx-arango-replication-lasttick: 398279079\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=398672295\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 401228199\nx-arango-replication-lasttick: 401228199\n\n{\"tick\":\"399458727\",\"type\":2000,\"cid\":\"398737831\",\"cname\":\"products\",\"collection\":{\"version\":4,\"type\":2,\"cid\":\"398737831\",\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"399983015\",\"type\":2300,\"cid\":\"398737831\",\"cname\":\"products\",\"key\":\"p1\",\"rev\":\"399720871\",\"data\":{\"_key\":\"p1\",\"_rev\":\"399720871\",\"name\":\"flux compensator\"}}\n{\"tick\":\"400441767\",\"type\":2300,\"cid\":\"398737831\",\"cname\":\"products\",\"key\":\"p2\",\"rev\":\"400245159\",\"data\":{\"_key\":\"p2\",\"_rev\":\"400245159\",\"hp\":5100,\"name\":\"hybrid hovercraft\"}}\n{\"tick\":\"400769447\",\"type\":2302,\"cid\":\"398737831\",\"cname\":\"products\",\"key\":\"p1\",\"rev\":\"400572839\",\"oldRev\":\"399720871\"}\n{\"tick\":\"401097127\",\"type\":2300,\"cid\":\"398737831\",\"cname\":\"products\",\"key\":\"p2\",\"rev\":\"400900519\",\"oldRev\":\"400245159\",\"data\":{\"_key\":\"p2\",\"_rev\":\"400900519\",\"hp\":5100,\"name\":\"broken hovercraft\"}}\n{\"tick\":\"401228199\",\"type\":2001,\"cid\":\"398737831\",\"cname\":\"products\"}\n\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=401621415&chunkSize=400\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-active: true\nx-arango-replication-checkmore: true\nx-arango-replication-lastincluded: 402932135\nx-arango-replication-lasttick: 404177319\n\n{\"tick\":\"402407847\",\"type\":2000,\"cid\":\"401686951\",\"cname\":\"products\",\"collection\":{\"version\":4,\"type\":2,\"cid\":\"401686951\",\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"402932135\",\"type\":2300,\"cid\":\"401686951\",\"cname\":\"products\",\"key\":\"p1\",\"rev\":\"402669991\",\"data\":{\"_key\":\"p1\",\"_rev\":\"402669991\",\"name\":\"flux compensator\"}}\n\n\n
unix> curl --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"16269735\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"animals\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"14827943\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"demo\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"132465063\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"vertices1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 3, \n \"cid\" : \"135217575\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"edges2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n } \n ], \n \"state\" : { \n \"running\" : false, \n \"lastLogTick\" : \"404242855\", \n \"totalEvents\" : 22, \n \"time\" : \"2014-01-20T21:04:25Z\" \n }, \n \"tick\" : \"404308391\" \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/inventory\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"collections\" : [ \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"16269735\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"animals\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"14827943\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"demo\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"404373927\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"405160359\", \n \"type\" : \"hash\", \n \"unique\" : false, \n \"fields\" : [ \n \"name\" \n ] \n }, \n { \n \"id\" : \"405422503\", \n \"type\" : \"skiplist\", \n \"unique\" : true, \n \"fields\" : [ \n \"a\", \n \"b\" \n ] \n }, \n { \n \"id\" : \"405488039\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 500, \n \"byteSize\" : 0 \n } \n ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"405553575\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"406340007\", \n \"type\" : \"fulltext\", \n \"unique\" : false, \n \"minLength\" : 10, \n \"fields\" : [ \n \"text\" \n ] \n }, \n { \n \"id\" : \"406536615\", \n \"type\" : \"skiplist\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\" \n ] \n }, \n { \n \"id\" : \"406602151\", \n \"type\" : \"cap\", \n \"unique\" : false, \n \"size\" : 0, \n \"byteSize\" : 1048576 \n } \n ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 2, \n \"cid\" : \"132465063\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"vertices1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n }, \n { \n \"parameters\" : { \n \"version\" : 4, \n \"type\" : 3, \n \"cid\" : \"135217575\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"edges2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ ] \n } \n ], \n \"state\" : { \n \"running\" : false, \n \"lastLogTick\" : \"404242855\", \n \"totalEvents\" : 22, \n \"time\" : \"2014-01-20T21:04:25Z\" \n }, \n \"tick\" : \"406602151\" \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 204 No Content\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 0\n\n
unix> curl --dump - http://localhost:8529/_api/replication/dump?collection=testCollection\n\nHTTP/1.1 200 OK\ncontent-type: application/x-arango-dump; charset=utf-8\nx-arango-replication-checkmore: false\nx-arango-replication-lastincluded: 409747879\n\n{\"tick\":\"408371623\",\"type\":2300,\"key\":\"abcdef\",\"rev\":\"408240551\",\"data\":{\"_key\":\"abcdef\",\"_rev\":\"408240551\",\"test\":true,\"a\":\"abc\"}}\n{\"tick\":\"408764839\",\"type\":2300,\"key\":\"123456\",\"rev\":\"408699303\",\"data\":{\"_key\":\"123456\",\"_rev\":\"408699303\",\"c\":false,\"b\":1}}\n{\"tick\":\"409092519\",\"type\":2300,\"key\":\"123456\",\"rev\":\"409026983\",\"data\":{\"_key\":\"123456\",\"_rev\":\"409026983\",\"c\":false,\"b\":1,\"d\":\"additional value\"}}\n{\"tick\":\"409354663\",\"type\":2300,\"key\":\"foobar\",\"rev\":\"409289127\",\"data\":{\"_key\":\"foobar\",\"_rev\":\"409289127\"}}\n{\"tick\":\"409551271\",\"type\":2302,\"key\":\"foobar\",\"rev\":\"409485735\"}\n{\"tick\":\"409747879\",\"type\":2302,\"key\":\"abcdef\",\"rev\":\"409682343\"}\n\n\n
unix> curl --dump - http://localhost:8529/_api/replication/server-id\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"serverId\" : \"190048212006786\" \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/applier-config\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"requestTimeout\" : 300, \n \"connectTimeout\" : 10, \n \"maxConnectRetries\" : 100, \n \"sslProtocol\" : 0, \n \"chunkSize\" : 0, \n \"autoStart\" : false, \n \"adaptivePolling\" : true \n}\n\n
unix> curl -X PUT --data @- --dump - http://localhost:8529/_api/replication/applier-config\n{\"endpoint\":\"tcp://127.0.0.1:8529\",\"username\":\"replicationApplier\",\"password\":\"applier1234@foxx\",\"chunkSize\":4194304,\"autoStart\":false,\"adaptivePolling\":true}\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\", \n \"username\" : \"replicationApplier\", \n \"requestTimeout\" : 300, \n \"connectTimeout\" : 10, \n \"maxConnectRetries\" : 100, \n \"sslProtocol\" : 0, \n \"chunkSize\" : 4194304, \n \"autoStart\" : false, \n \"adaptivePolling\" : true \n}\n\n
unix> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-start\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : true, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-01-20T21:03:04Z\", \n \"message\" : \"applier created\", \n \"failedConnects\" : 0 \n }, \n \"totalRequests\" : 0, \n \"totalFailedConnects\" : 0, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"errorNum\" : 0 \n }, \n \"time\" : \"2014-01-20T21:04:27Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.6\", \n \"serverId\" : \"190048212006786\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n\n
unix> curl -X PUT --dump - http://localhost:8529/_api/replication/applier-stop\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-01-20T21:04:27Z\", \n \"message\" : \"applier stopped\", \n \"failedConnects\" : 0 \n }, \n \"totalRequests\" : 0, \n \"totalFailedConnects\" : 0, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-01-20T21:04:27Z\", \n \"errorMessage\" : \"got same server id (190048212006786) from endpoint 'tcp://127.0.0.1:8529' as the...\", \n \"errorNum\" : 1405 \n }, \n \"time\" : \"2014-01-20T21:04:27Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.6\", \n \"serverId\" : \"190048212006786\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-01-20T21:04:27Z\", \n \"message\" : \"applier stopped\", \n \"failedConnects\" : 0 \n }, \n \"totalRequests\" : 0, \n \"totalFailedConnects\" : 0, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-01-20T21:04:27Z\", \n \"errorMessage\" : \"got same server id (190048212006786) from endpoint 'tcp://127.0.0.1:8529' as the...\", \n \"errorNum\" : 1405 \n }, \n \"time\" : \"2014-01-20T21:04:27Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.6\", \n \"serverId\" : \"190048212006786\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n\n
unix> curl --dump - http://localhost:8529/_api/replication/applier-state\n\nHTTP/1.1 200 OK\ncontent-type: application/json; charset=utf-8\n\n{ \n \"state\" : { \n \"running\" : false, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2014-01-20T21:04:27Z\", \n \"message\" : \"applier stopped\", \n \"failedConnects\" : 0 \n }, \n \"totalRequests\" : 0, \n \"totalFailedConnects\" : 0, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2014-01-20T21:04:27Z\", \n \"errorMessage\" : \"got same server id (190048212006786) from endpoint 'tcp://127.0.0.1:8529' as the...\", \n \"errorNum\" : 1405 \n }, \n \"time\" : \"2014-01-20T21:04:27Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.6\", \n \"serverId\" : \"190048212006786\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n\n