-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbe9c18
commit b38f95c
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/proxy.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: [] |
26 changes: 26 additions & 0 deletions
26
.doubanpde/scripts/bdb/gobeansproxy/dstore-only/conf/route.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |