From 8a608b58292ed65b36b93bb99bcf3d3d840f5bd8 Mon Sep 17 00:00:00 2001 From: The Doctor Date: Mon, 7 Apr 2014 11:50:16 -0700 Subject: [PATCH] Configuration file improvements: * Set default node_db to RocksDB from HyperlevelDB, to match gateway appliances and Ripple Labs server configurations. * Set some rpc_startup options to reduce logging and save disk space. * More sensible documentation regarding WebSocket SSL directives Signed-off-by: The Doctor --- doc/rippled-example.cfg | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/doc/rippled-example.cfg b/doc/rippled-example.cfg index 1de511f0e..b2870cc0e 100644 --- a/doc/rippled-example.cfg +++ b/doc/rippled-example.cfg @@ -793,10 +793,17 @@ [node_size] medium -# Note that HyperLevelDB is unavailable on Windows platforms +# This is primary persistent datastore for rippled. This includes transaction +# metadata, account states, and ledger headers. Helpful information can be +# found here: https://ripple.com/wiki/NodeBackEnd [node_db] -type=HyperLevelDB -path=/var/lib/ripple/db/hyperldb +type=RocksDB +path=/var/lib/rippled/db/rocksdb +open_files=2000 +filter_bits=12 +cache_mb=256 +file_size_mb=8 +file_size_mult=2 [database_path] /var/lib/ripple/db @@ -830,7 +837,15 @@ n9KF6RpvktjNs2MDBkmxpJbup4BKrKeMKDXPhaXkq7cKTwLmWkFr RIP5 [validation_quorum] 3 -# Configure SSL for WebSockets. Not enabled by default yet. +# Turn down default logging to save disk space in the long run. +# Valid values here are trace, debug, info, warning, error, and fatal +[rpc_startup] +{ "command": "log_level", "severity": "warning" } + +# Configure SSL for WebSockets. Not enabled by default because not everybody +# has an SSL cert on their server, but if you uncomment the following lines and +# set the path to the SSL certificate and private key the WebSockets protocol +# will be protected by SSL/TLS. #[websocket_secure] #1 @@ -840,6 +855,9 @@ n9KF6RpvktjNs2MDBkmxpJbup4BKrKeMKDXPhaXkq7cKTwLmWkFr RIP5 #[websocket_ssl_key] #/etc/ssl/private/server.key +# Defaults to 0 ("no") so that you can use self-signed SSL certificates for +# development, or internally. #[ssl_verify] #0 +