From e9918a732308b9e5cc2478e339e7865dbc786532 Mon Sep 17 00:00:00 2001 From: Greg Szabo Date: Thu, 31 Aug 2017 13:38:38 -0400 Subject: [PATCH] config.toml changes --- ansible/roles/config/tasks/main.yml | 1 + ansible/roles/config/templates/config.toml.j2 | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ansible/roles/config/tasks/main.yml b/ansible/roles/config/tasks/main.yml index 8323a7a48..9a9fe3e5f 100644 --- a/ansible/roles/config/tasks/main.yml +++ b/ansible/roles/config/tasks/main.yml @@ -39,6 +39,7 @@ copy: "src={{service_genesis_file}} dest=/etc/{{service}}/genesis.json owner={{service}} group={{service}}" - name: copy tendermint config.toml + tags: reconfig when: validators == true or validators == 'true' template: src: config.toml.j2 diff --git a/ansible/roles/config/templates/config.toml.j2 b/ansible/roles/config/templates/config.toml.j2 index 6c0ab9ccf..79e39c39f 100644 --- a/ansible/roles/config/templates/config.toml.j2 +++ b/ansible/roles/config/templates/config.toml.j2 @@ -4,8 +4,9 @@ proxy_app = "tcp://127.0.0.1:46658" moniker = "{{inventory_hostname}}" fast_sync = true -db_backend = "leveldb" -log_level = "mempool:error,*:debug" +db_backend = "memdb" +#log_level = "mempool:error,*:debug" +log_level = "state:info,*:error" [rpc] laddr = "tcp://0.0.0.0:46657" @@ -21,8 +22,13 @@ create_empty_blocks = false timeout_propose = 10000 skip_timeout_commit = true timeout_commit = 1 +wal_light = true +block_part_size = 262144 [p2p] +max_msg_packet_payload_size=65536 +send_rate=51200000 # 50 MB/s +recv_rate=51200000 # 50 MB/s laddr = "tcp://0.0.0.0:46656" {% if validators == true or validators == 'true' %} {% set comma = joiner(",") %}seeds = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}"