From b38f95ca494c921ce3cc8bb3bc4e9ef5cac5152f Mon Sep 17 00:00:00 2001 From: mu Date: Tue, 9 Jan 2024 19:09:32 +0800 Subject: [PATCH] Fix missing files --- .../gobeansproxy/dstore-only/conf/proxy.yaml | 78 +++++++++++++++++++ .../gobeansproxy/dstore-only/conf/route.yaml | 26 +++++++ 2 files changed, 104 insertions(+) create mode 100644 .doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/proxy.yaml create mode 100644 .doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/route.yaml diff --git a/.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/proxy.yaml b/.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/proxy.yaml new file mode 100644 index 0000000..0f96031 --- /dev/null +++ b/.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/proxy.yaml @@ -0,0 +1,78 @@ +cassandra: + default_key_space: doubandb + default_table: kvstore + enable: false + hosts: + - 127.0.0.1:9042 + timeout_ms: 1000 + connect_timeout_ms: 3000 + write_timeout_ms: 1000 + retry_num: 3 + reconnect_interval_sec: 180 + max_conn_for_getm: 10 + num_conns: 10 + username: "doubandb_test" + password: "doubandb_test" + consistency: "local_one" + prefix_table_dispatcher_cfg: + # if not enable will use default keyspace and table + enable: true + static: + # dispatch prefix1 key to table table_name1 + kvstore_prefix_a: + - "/prefix_a" + cfg_table: bdb_prefix_table_finder + cfg_keyspace: doubandb + prefix_rw_dispatcher_cfg: + enable: true + static: + # dispatch prefix /test_prefix_c/ to dual write + br1w1cr0w1: + - "/test_prefix_c/" + - "/test_prefix_d/" + br0w0cr1w1: + - "test_" + cfg_table: bdb_prefix_rw_switcher + cfg_keyspace: doubandb + default_storage: "br1w1cr0w0" + dual_write_err_cfg: + dump_to_dir: /tmp/log/gobeansproxy/proxy/ + log_file_name: dual_write_err.log + logger_level: "INFO" + rotate_size_mb: 100 + compress: true + max_ages: 7 + max_backups: 100 +dstore: + enable: true + connect_timeout_ms: 300 + dial_fail_silence_ms: 5000 + error_seconds: 10 + item_size_stats: 4096 + max_connect_errors: 3 + max_free_conns_per_host: 20 + n: 3 + r: 1 + read_timeout_ms: 2000 + response_time_min: 4000 + response_time_seconds: 10 + score_deviation: 10 + w: 2 + write_timeout_ms: 2000 +mc: + body_big_str: 5M + body_c_str: 0K + body_max_str: 50M + max_key_len: 250 + max_req: 16 +proxy: + accesslog: /tmp/log/gobeansproxy/proxy/access.log + errorlog: /tmp/log/gobeansproxy/proxy/error.log + hostname: 127.0.0.1 + listen: 0.0.0.0 + port: 47907 + staticdir: /var/lib/gobeansproxy + threads: 8 + webport: 47910 + zkpath: /gobeansproxy/test + zkservers: [] diff --git a/.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/route.yaml b/.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/route.yaml new file mode 100644 index 0000000..17f8888 --- /dev/null +++ b/.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/route.yaml @@ -0,0 +1,26 @@ +backup: +- 127.0.0.1:57983 +main: +- addr: 127.0.0.1:57980 + buckets: &id001 + - '0' + - '1' + - '2' + - '3' + - '4' + - '5' + - '6' + - '7' + - '8' + - '9' + - a + - b + - c + - d + - e + - f +- addr: 127.0.0.1:57981 + buckets: *id001 +- addr: 127.0.0.1:57982 + buckets: *id001 +numbucket: 16