ToplingDB is a configurable and observable extension of RocksDB. It supports dynamic tuning via YAML files and enables real-time monitoring through a built-in Web Server.
Update hugegraph.properties
backend=rocksdbserializer=binaryrocksdb.data_path=.rocksdb.wal_path=.# Path to YAML configuration file# For security reasons, HG only allows YAML files to be located under the `conf/graphs` directoryrocksdb.option_path=./conf/graphs/rocksdb_plus.yaml# Enable Web Serverrocksdb.open_http=true
Initialize the database (required on the first startup, or a new configuration was manually added under ‘conf/graphs/’)
cd *hugegraph-${version}bin/init-store.sh
Start server
bin/start-hugegraph.sh
Starting HugeGraphServer...
Connecting to HugeGraphServer (http://127.0.0.1:8080/graphs)....OK
Verify ToplingDB Is Working Properly
Prerequisite: Ensure Core Parameters Are Correctly Configured
Check that hugegraph.properties includes:
# Configuration file pathrocksdb.option_path=./conf/graphs/rocksdb_plus.yaml# Enable Web Serverrocksdb.open_http=true
Method 1: Access the Web Monitoring Interface
Visualize the Web monitoring page. Example screenshot:
Verify via terminal:
# Access http://localhost:2011 (port depends on listening_ports in YAML config)curl http://localhost:2011 | grep topling
The following output indicates the page is working:
<p><ahref="https://topling.cn">Topling Inc.</a>This is <strong>Engine Inspector</strong>, for metrics, see <ahref='javascript:grafana()'>Grafana</a>!</p>
Method 2: Check ToplingDB Initialization Info in Logs