| product_name | | - | Proxy cluster name |
| product_auth | | - | Proxy http api token |
| proxy_auth_enabled | false | - | Whether to enable redis security authentication |
| proxy_auth_password | | - | Redis authentication password |
| proxy_auth_admin | | - | Redis management authentication password |
| proto_type | tcp4 | tcp4 | Redis service proto |
| proxy_addr | 0.0.0.0:8112 | - | Redis service port |
| admin_addr | 0.0.0.0:8111 | - | HTTP service port |
| dashboard_proto_type | http | - | Dashboard service proto, http or https |
| dashboard_username | username | - | Dashboard login user |
| dashboard_password | password | - | Dashboard login password |
| proxy_cloudtype | - | - | Cloud vendor or data center attribute, used for multi-cloud or multi data center |
| read_cross_cloud | 0 | 0 | Whether to allow cross-cloud requests, 1=allow, 2=not allow, 0=use dashboard settings |
| proxy_max_clients | 1000 | 3000 | Maximum number of connections |
| max_procs | 4 | 4 | Threads |
| conn_read_buffersize | 4kb | 4kb | Connection read buffer size |
| conn_write_buffersize | 4kb | 4kb | Connection write buffer size |
| pprof_switch | 0 | 0 | Whether to open pprof, 1=open, 0=not open |
| pprof_address | :8113 | - | Pprof service port |
| metrics_report_log_switch | 0 | 0 | Whether to write proxy metric to the log, 1=write, 0=do not write |
| metrics_report_log_period | 1s | - | Interval of writting proxy metric to the log |
| metrics_reset_cycle | 0 | - | Metric reset period=metrics_report_log_period*metrics_reset_cycle |
| open_distributed_tx | false | false | Whether to enable transactions, Bitalostored needs to be configured collaboratively. |
| breaker_stop_timeout | 200ms | 200ms | Duration from open state to half-open state of circuit breaker |
| breaker_open_fail_rate | 0.05 | - | Failure ratio of opening circuit breaker |
| breaker_restore_request | 50 | - | The number of requests released when circuit breaker is in half-open state |
| log.is_debug | false | false | Whether to enable debug log |
| log.rotation_time | Hourly | Hourly | Log segmentation cycle |
| log.log_file | - | - | proxy common log path |
| log.access_log | false | false | Whether to enable acces log, details of each request will be recorded. |
| access log path | | | |
| log.access_log_file | | - | Access log path |
| log.slow_log | true | true | Whether to enable slow query log |
| log.slow_log_cost | 30ms | 30ms | Time threshold of slow query |
| log.slow_log_file | | - | Slow query log path |
| redis_default_conf.max_idle | 50 | 50 | The maximum number of idle connections to Bitalostored |
| redis_default_conf.max_active | 50 | 50 | Maximum number of available connections to Bitalostored |
| redis_default_conf.idle_timeout | 3600s | 1800s | Timeout for idle connections to Bitalostored |
| redis_default_conf.conn_lifetime | 3600s | 0s | Maximum keepalive time for connections to Bitalostored |
| redis_default_conf.password | "" | "" | Value is "", do not modify |
| redis_default_conf.database | 0 | 0 | Value is 0, do not modify |
| redis_default_conf.conn_timeout | 50ms | - | Connection timeout to Bitalostored |
| redis_default_conf.read_timeout | 500ms | - | Read timeout for Bitalostored connection |
| redis_default_conf.write_timeout | 500ms | - | Write timeout for Bitalostored connection |
| dynamic_deadline.client_ratio_threshold | [0,30,60,80,90] | [0,30,60,80,90] | Ratio of service connection to max connection (proxy_max_clients) |
| dynamic_deadline.deadline_threshold | ["180s","100s","30s","6s","2s"] | ["360s","180s","60s","6s","2s"] | According to current service connection number, set corresponding connect timeout for all connections. For example, client_ratio_threshold is 30%~59%, connection timeout is 100s. |