dbs-configure Command

Turn on/off the simulation mode for the reindexing command.

It is possible to reindex Elasticsearch according to the database by means of the dbs-reindex command provided by the COMMANDER servicePer default, the command is executed in a simulation mode that does not manipulate any data. In order to actually apply the reindexing to the data, the simulation mode has to be turned off with the dbs-configure command. After the non-simulation reindexing has been executed, the simulation mode is turned on again automatically.

These parameters can be given to the dbs-configure command:

ParameterDescriptionExample
-s | --simulation

Turns the simulation mode on(parameter  is set) or off(parameter is not set).

After starting the Commander service and after a non-simulation reindexing process, the simulation mode is set to on automatically.

dbs-configure --simulation

The following example code shows the commands together with the corresponding command line outputs for a non-simulation reindexing. The simulation mode is turned off in line 7. In line 18, the reindexing is executed for the default tenant starting from 2017-01-01 and ending on 2017-12-31.

Lt. Commander>help dbs-configure

NAME
        dbs-configure - configure timeouts
SYNOPSYS
        dbs-configure [-s]  [-c]  [-f]
OPTIONS
        -s or --simulation
                turn simulation mode on/off
                [Optional, default = false]

        -c or --cockroach
                Sturn cockroach-db  on/off. If cockroach-db is turned 'on', command 'rename' will do updates on database without 'SELECT FOR UPDATE'
                [Optional, default = false]

        -f or --fulltext
                turn fulltext index  on/off.
                [Optional, default = false]

Lt. Commander>dbs-configure --simulation
simulation mode is [true]
 
Lt. Commander>help dbs-reindex

NAME
        dbs-reindex - reindex all dmsObject from database
SYNOPSYS
        dbs-reindex [[-t] string]  [[-s] string]  [[-e] string]
OPTIONS
        -t or --tenant  string
                specify tenant
                [Optional, default = ]

        -s or --start-date  string
                Set start date. e.g.: -s 2019-01-21
                [Optional, default = ]

        -e or --end-date  string
                Set end date. e.g.: --end-date=2020-01-21
                [Optional, default = ]
 
Lt. Commander>dbs-reindex -t default -s 2017-01-01 --end-date=2017-12-31
tenant[default]  start-date[2017-01-01] endDate[2017-12-31]
getting stats
....

Read on

Audit Trail - an "Object's History"

The audit trail is the history protocol of an object, serving to document its total lifecycle. There are many different actions that trigger the creation of a new entry in the respective object's audit trail. Keep reading

COMMANDER Service for System Maintenance

Perform low-level maintenance on your core system, access the database and carry out Elasticsearch queries. Keep reading