Browse Source

change references of cache_capacity to db_cache_capacity

merge-requests/114/head
Jonathan de Jong 5 years ago
parent
commit
3260ae01b8
  1. 2
      DEPLOY.md
  2. 2
      conduit-example.toml
  3. 2
      debian/postinst
  4. 2
      src/database/abstraction/sled.rs

2
DEPLOY.md

@ -106,7 +106,7 @@ allow_federation = true
trusted_servers = ["matrix.org"] trusted_servers = ["matrix.org"]
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024 #db_cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time #max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time
#workers = 4 # default: cpu core count * 2 #workers = 4 # default: cpu core count * 2

2
conduit-example.toml

@ -35,7 +35,7 @@ max_request_size = 20_000_000 # in bytes
trusted_servers = ["matrix.org"] trusted_servers = ["matrix.org"]
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024 #db_cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time #max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time
#log = "info,state_res=warn,rocket=off,_=off,sled=off" #log = "info,state_res=warn,rocket=off,_=off,sled=off"
#workers = 4 # default: cpu core count * 2 #workers = 4 # default: cpu core count * 2

2
debian/postinst vendored

@ -73,7 +73,7 @@ max_request_size = 20_000_000 # in bytes
# Enable jaeger to support monitoring and troubleshooting through jaeger. # Enable jaeger to support monitoring and troubleshooting through jaeger.
#allow_jaeger = false #allow_jaeger = false
#cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024 #db_cache_capacity = 1073741824 # in bytes, 1024 * 1024 * 1024
#max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time #max_concurrent_requests = 100 # How many requests Conduit sends to other servers at the same time
#log = "info,state_res=warn,rocket=off,_=off,sled=off" #log = "info,state_res=warn,rocket=off,_=off,sled=off"
#workers = 4 # default: cpu core count * 2 #workers = 4 # default: cpu core count * 2

2
src/database/abstraction/sled.rs

@ -14,7 +14,7 @@ impl DatabaseEngine for Engine {
Ok(Arc::new(Engine( Ok(Arc::new(Engine(
sled::Config::default() sled::Config::default()
.path(&config.database_path) .path(&config.database_path)
.cache_capacity(config.cache_capacity as u64) .cache_capacity(config.db_cache_capacity as u64)
.use_compression(true) .use_compression(true)
.open()?, .open()?,
))) )))

Loading…
Cancel
Save