{
"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\" : \"397951399\", \n \"totalEvents\" : 2, \n \"time\" : \"2013-12-22T17:24:57Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.4-rc1\", \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\" : \"398279079\", \n \"totalEvents\" : 3, \n \"time\" : \"2013-12-22T17:24:57Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.4-rc1\", \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=398672295\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: 398672295\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=399065511\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: 401621415\nx-arango-replication-lasttick: 401621415\n\n{\"tick\":\"399851943\",\"type\":2000,\"cid\":\"399131047\",\"cname\":\"products\",\"collection\":{\"version\":4,\"type\":2,\"cid\":\"399131047\",\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"400376231\",\"type\":2300,\"cid\":\"399131047\",\"cname\":\"products\",\"key\":\"p1\",\"rev\":\"400114087\",\"data\":{\"_key\":\"p1\",\"_rev\":\"400114087\",\"name\":\"flux compensator\"}}\n{\"tick\":\"400834983\",\"type\":2300,\"cid\":\"399131047\",\"cname\":\"products\",\"key\":\"p2\",\"rev\":\"400638375\",\"data\":{\"_key\":\"p2\",\"_rev\":\"400638375\",\"hp\":5100,\"name\":\"hybrid hovercraft\"}}\n{\"tick\":\"401162663\",\"type\":2302,\"cid\":\"399131047\",\"cname\":\"products\",\"key\":\"p1\",\"rev\":\"400966055\",\"oldRev\":\"400114087\"}\n{\"tick\":\"401490343\",\"type\":2300,\"cid\":\"399131047\",\"cname\":\"products\",\"key\":\"p2\",\"rev\":\"401293735\",\"oldRev\":\"400638375\",\"data\":{\"_key\":\"p2\",\"_rev\":\"401293735\",\"hp\":5100,\"name\":\"broken hovercraft\"}}\n{\"tick\":\"401621415\",\"type\":2001,\"cid\":\"399131047\",\"cname\":\"products\"}\n\n\n
unix> curl --dump - http://localhost:8529/_api/replication/logger-follow?from=402014631&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: 403325351\nx-arango-replication-lasttick: 404570535\n\n{\"tick\":\"402801063\",\"type\":2000,\"cid\":\"402080167\",\"cname\":\"products\",\"collection\":{\"version\":4,\"type\":2,\"cid\":\"402080167\",\"deleted\":false,\"doCompact\":true,\"maximalSize\":1048576,\"name\":\"products\",\"isVolatile\":false,\"waitForSync\":false}}\n{\"tick\":\"403325351\",\"type\":2300,\"cid\":\"402080167\",\"cname\":\"products\",\"key\":\"p1\",\"rev\":\"403063207\",\"data\":{\"_key\":\"p1\",\"_rev\":\"403063207\",\"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\" : \"16794023\", \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\" : \"15352231\", \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\" : \"132858279\", \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\" : \"135610791\", \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\" : \"404636071\", \n \"totalEvents\" : 22, \n \"time\" : \"2013-12-22T17:24:57Z\" \n }, \n \"tick\" : \"404701607\" \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\" : \"16794023\", \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\" : \"15352231\", \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\" : \"404767143\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection1\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"405553575\", \n \"type\" : \"hash\", \n \"unique\" : false, \n \"fields\" : [ \n \"name\" \n ] \n }, \n { \n \"id\" : \"405815719\", \n \"type\" : \"skiplist\", \n \"unique\" : true, \n \"fields\" : [ \n \"a\", \n \"b\" \n ] \n }, \n { \n \"id\" : \"405881255\", \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\" : \"405946791\", \n \"deleted\" : false, \n \"doCompact\" : true, \n \"maximalSize\" : 1048576, \n \"name\" : \"IndexedCollection2\", \n \"isVolatile\" : false, \n \"waitForSync\" : false \n }, \n \"indexes\" : [ \n { \n \"id\" : \"406733223\", \n \"type\" : \"fulltext\", \n \"unique\" : false, \n \"minLength\" : 10, \n \"fields\" : [ \n \"text\" \n ] \n }, \n { \n \"id\" : \"406929831\", \n \"type\" : \"skiplist\", \n \"unique\" : false, \n \"fields\" : [ \n \"a\" \n ] \n }, \n { \n \"id\" : \"406995367\", \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\" : \"132858279\", \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\" : \"135610791\", \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\" : \"404636071\", \n \"totalEvents\" : 22, \n \"time\" : \"2013-12-22T17:24:57Z\" \n }, \n \"tick\" : \"406995367\" \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: 410141095\n\n{\"tick\":\"408764839\",\"type\":2300,\"key\":\"abcdef\",\"rev\":\"408633767\",\"data\":{\"_key\":\"abcdef\",\"_rev\":\"408633767\",\"test\":true,\"a\":\"abc\"}}\n{\"tick\":\"409158055\",\"type\":2300,\"key\":\"123456\",\"rev\":\"409092519\",\"data\":{\"_key\":\"123456\",\"_rev\":\"409092519\",\"c\":false,\"b\":1}}\n{\"tick\":\"409485735\",\"type\":2300,\"key\":\"123456\",\"rev\":\"409420199\",\"data\":{\"_key\":\"123456\",\"_rev\":\"409420199\",\"c\":false,\"b\":1,\"d\":\"additional value\"}}\n{\"tick\":\"409747879\",\"type\":2300,\"key\":\"foobar\",\"rev\":\"409682343\",\"data\":{\"_key\":\"foobar\",\"_rev\":\"409682343\"}}\n{\"tick\":\"409944487\",\"type\":2302,\"key\":\"foobar\",\"rev\":\"409878951\"}\n{\"tick\":\"410141095\",\"type\":2302,\"key\":\"abcdef\",\"rev\":\"410075559\"}\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\" : \"2013-12-22T17:24:17Z\", \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\" : \"2013-12-22T17:24:58Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.4-rc1\", \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\" : \"2013-12-22T17:24:58Z\", \n \"message\" : \"applier stopped\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2013-12-22T17:24:58Z\", \n \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp:/...\", \n \"errorNum\" : 1412 \n }, \n \"time\" : \"2013-12-22T17:24:58Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.4-rc1\", \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\" : \"2013-12-22T17:24:58Z\", \n \"message\" : \"applier stopped\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 2, \n \"totalFailedConnects\" : 2, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"time\" : \"2013-12-22T17:24:58Z\", \n \"errorMessage\" : \"could not connect to master at tcp://127.0.0.1:8529: Could not connect to 'tcp:/...\", \n \"errorNum\" : 1412 \n }, \n \"time\" : \"2013-12-22T17:24:58Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.4-rc1\", \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\" : true, \n \"lastAppliedContinuousTick\" : null, \n \"lastProcessedContinuousTick\" : null, \n \"lastAvailableContinuousTick\" : null, \n \"progress\" : { \n \"time\" : \"2013-12-22T17:24:58Z\", \n \"message\" : \"fetching master state information\", \n \"failedConnects\" : 1 \n }, \n \"totalRequests\" : 3, \n \"totalFailedConnects\" : 3, \n \"totalEvents\" : 0, \n \"lastError\" : { \n \"errorNum\" : 0 \n }, \n \"time\" : \"2013-12-22T17:24:58Z\" \n }, \n \"server\" : { \n \"version\" : \"1.4.4-rc1\", \n \"serverId\" : \"190048212006786\" \n }, \n \"endpoint\" : \"tcp://127.0.0.1:8529\", \n \"database\" : \"_system\" \n}\n\n