reset-stats

You can reset Dgraph statistics by running the bdd-admin script with the reset-stats command.

Note: Statistics are intended for use by Oracle Support only.
To reset Dgraph statistics, run the following from the Admin Server:
./bdd-admin.sh reset-stats [option <arg>]

You can specify the following options.

Option Description
-c, --component <component(s)> A comma-separated list of the components the script will run on:
  • dgraph: Dgraph
-n, --node <hostname(s)> A comma-separated list of the nodes the script will run on. Each must be defined in bdd.conf.

If you don't specify any options, the script will reset the statistics for all Dgraph instances in the cluster.

For more information on Dgraph statistics, see About Dgraph statistics.

Examples

The following command resets the statistics for all Dgraph instances in the cluster:
./bdd-admin.sh reset-stats
The following command resets the statistics for the Dgraph running on the web009.us.example.com node:
./bdd-admin.sh reset-stats -n web009.us.example.com