Write-ahead log

    This module provides functionality for administering the write-ahead logs.Most of these functions only return sensible values when invoked with the .

    retrieves the configuration of the write-ahead log

    Retrieves the configuration of the write-ahead log. The result is a JSONarray with the following attributes:

    • allowOversizeEntries: whether or not operations that are bigger than asingle logfile can be executed and stored
    • logfileSize: the size of each write-ahead logfile
    • historicLogfiles: the maximum number of historic logfiles to keep
    • reserveLogfiles: the maximum number of reserve logfiles that ArangoDBallocates in the background
    • throttleWait: the maximum wait time that operations will wait beforethey get aborted if case of write-throttling (in milliseconds)
    • throttleWhenPending: the number of unprocessed garbage-collectionoperations that, when reached, will activate write-throttling. A value of0 means that write-throttling will not be triggered.

    Examples

    Show execution results

    1. {
    2. }

    configures the write-ahead log

    Configures the behavior of the write-ahead log. properties must be a JSONJSON object with the following attributes:

    • allowOversizeEntries: whether or not operations that are bigger than asingle logfile can be executed and stored
    • logfileSize: the size of each write-ahead logfile
    • reserveLogfiles: the maximum number of reserve logfiles that ArangoDBallocates in the background
    • throttleWait: the maximum wait time that operations will wait beforethey get aborted if case of write-throttling (in milliseconds)
    • throttleWhenPending: the number of unprocessed garbage-collectionoperations that, when reached, will activate write-throttling. A value of0 means that write-throttling will not be triggered.

    Specifying any of the above attributes is optional. Not specified attributeswill be ignored and the configuration for them will not be modified.

    Examples

    Show execution results

    1. {
    2. }

    Flushing

    flushes the currently open WAL logfile

    Flushes the write-ahead log. By flushing the currently active write-aheadlogfile, the data in it can be transferred to collection journals anddatafiles. This is useful to ensure that all data for a collection ispresent in the collection journals and datafiles, for example, when dumpingthe data of a collection.

    The waitForSync option determines whether or not the operation shouldblock until the not-yet synchronized data in the write-ahead log wassynchronized to disk.

    The waitForCollector operation can be used to specify that the operationshould block until the data in the flushed log has been collected by thewrite-ahead log garbage collector. Note that setting this option to _true_might block for a long time if there are long-running transactions andthe write-ahead log garbage collector cannot finish garbage collection.

    Examples

    Hide execution results

    1.