summaryrefslogtreecommitdiff
path: root/.rr.yaml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-05 17:37:17 +0300
committerValery Piashchynski <[email protected]>2021-01-05 17:37:17 +0300
commit13b01ccaba1eedeb99d37842ec8f2019d2625187 (patch)
treec645c240336666fa63d70ed2703a78df828c597f /.rr.yaml
parent877b0ed461c7d5e1de87b7561f414aeb236cf3ec (diff)
Finish implementation of the KV
Diffstat (limited to '.rr.yaml')
-rwxr-xr-x.rr.yaml70
1 files changed, 48 insertions, 22 deletions
diff --git a/.rr.yaml b/.rr.yaml
index 5f6d3cb2..ae75bb27 100755
--- a/.rr.yaml
+++ b/.rr.yaml
@@ -18,10 +18,19 @@ logs:
http:
address: 127.0.0.1:44933
maxRequestSize: 1024
- middleware: [ "gzip", "headers" ]
+ middleware: ["gzip", "headers"]
uploads:
- forbid: [ ".php", ".exe", ".bat" ]
- trustedSubnets: [ "10.0.0.0/8", "127.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "::1/128", "fc00::/7", "fe80::/10" ]
+ forbid: [".php", ".exe", ".bat"]
+ trustedSubnets:
+ [
+ "10.0.0.0/8",
+ "127.0.0.0/8",
+ "172.16.0.0/12",
+ "192.168.0.0/16",
+ "::1/128",
+ "fc00::/7",
+ "fe80::/10",
+ ]
pool:
numWorkers: 6
maxJobs: 0
@@ -50,29 +59,46 @@ redis:
# if the number of Addrs is two or more, a ClusterClient will be returned
addrs:
- - 'localhost:6379'
+ - "localhost:6379"
# if a MasterName is passed a sentinel-backed FailoverClient will be returned
- master_name: ''
- username: ''
- password: ''
+ master_name: ""
+ username: ""
+ password: ""
db: 0
- sentinel_password: ''
+ sentinel_password: ""
route_by_latency: false
route_randomly: false
dial_timeout: 0 # accepted values [1s, 5m, 3h]
max_retries: 1
- min_retry_backoff: 0 # accepted values [1s, 5m, 3h]
- max_retry_backoff: 0 # accepted values [1s, 5m, 3h]
+ min_retry_backoff: 0 # accepted values [1s, 5m, 3h]
+ max_retry_backoff: 0 # accepted values [1s, 5m, 3h]
pool_size: 0
min_idle_conns: 0
- max_conn_age: 0 # accepted values [1s, 5m, 3h]
- read_timeout: 0 # accepted values [1s, 5m, 3h]
- write_timeout: 0 # accepted values [1s, 5m, 3h]
- pool_timeout: 0 # accepted values [1s, 5m, 3h]
- idle_timeout: 0 # accepted values [1s, 5m, 3h]
- idle_check_freq: 0 # accepted values [1s, 5m, 3h]
+ max_conn_age: 0 # accepted values [1s, 5m, 3h]
+ read_timeout: 0 # accepted values [1s, 5m, 3h]
+ write_timeout: 0 # accepted values [1s, 5m, 3h]
+ pool_timeout: 0 # accepted values [1s, 5m, 3h]
+ idle_timeout: 0 # accepted values [1s, 5m, 3h]
+ idle_check_freq: 0 # accepted values [1s, 5m, 3h]
read_only: false
+# boltdb simple driver
+boltdb:
+ dir: "."
+ file: "rr"
+ bucket: "test"
+ permissions: 0777
+ TTL: 60 # seconds
+
+ # memcached driver
+memcached:
+ addr:
+ - "localhost:11211"
+
+# in memory KV driver
+memory:
+ enabled: true
+
metrics:
# prometheus client address (path /metrics added automatically)
address: localhost:2112
@@ -80,8 +106,8 @@ metrics:
app_metric:
type: histogram
help: "Custom application metric"
- labels: [ "type" ]
- buckets: [ 0.1, 0.2, 0.3, 1.0 ]
+ labels: ["type"]
+ buckets: [0.1, 0.2, 0.3, 1.0]
# objectives defines the quantile rank estimates with their respective
# absolute error [ for summary only ]
objectives:
@@ -92,16 +118,16 @@ reload:
# sync interval
interval: 1s
# global patterns to sync
- patterns: [ ".go" ]
+ patterns: [".go"]
# list of included for sync services
services:
http:
# recursive search for file patterns to add
recursive: true
# ignored folders
- ignore: [ "vendor" ]
+ ignore: ["vendor"]
# service specific file pattens to sync
- patterns: [ ".php", ".go",".md", ]
+ patterns: [".php", ".go", ".md"]
# directories to sync. If recursive is set to true,
# recursive sync will be applied only to the directories in `dirs` section
- dirs: [ "." ] \ No newline at end of file
+ dirs: ["."]