parameter.yaml 12.3 KB
Newer Older
O
oceanbase-admin 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
- name: home_path
  require: true
  type: STRING
  need_restart: true
  description_en: the directory for the work data file
  description_local: ObProxy工作目录
- name: listen_port
  require: true
  type: INT
  default: 2883
  min_value: 1025
  max_value: 65535
  need_restart: true
  description_en: port number for mysql connection
  description_local: SQL服务协议端口号
- name: prometheus_listen_port
  require: true
  type: INT
  default: 2884
  min_value: 1025
  max_value: 65535
  need_restart: true
  description_en: obproxy prometheus listen port
R
Rongfeng Fu 已提交
24
  description_local: 提供prometheus服务端口号
O
oceanbase-admin 已提交
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
- name: appname
  require: false
  type: STRING
  need_restart: true
  description_en: application name
  description_local: 应用名
- name: cluster_name
  require: false
  type: STRING
  need_restart: true
  description_en: observer cluster name
  description_local: 代理的observer集群名
- name: rs_list
  type: ARRAY
  need_restart: true
  description_en: root server list(format ip:sql_port)
  description_local: observer列表(格式 ip:sql_port)
- name: refresh_json_config
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: force update json info if refresh_json_config is true
- name: refresh_rslist
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: when refresh config server, update all rslist if refresh_rslist is true
- name: refresh_idc_list
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: when refresh config server, update all idc list if refresh_idc_list is true
- name: refresh_config
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: when table processor do check work, update all proxy config if refresh_config is true
- name: proxy_info_check_interval
  type: TIME
  default: 60s
  min_value: 1s
  max_value: 1h
  need_restart: false
  description_en: proxy info check task interval, [1s, 1h]
- name: cache_cleaner_clean_interval
  type: TIME
  default: 20s
  min_value: 1s
  max_value: 1d
  need_restart: false
  description_en: the interval for cache cleaner to clean cache, [1s, 1d]
- name: server_state_refresh_interval
  type: TIME
  default: 20s
  min_value: 10ms
  max_value: 1h
  need_restart: false
  description_en: the interval to refresh server state for getting zone or server newest state, [10ms, 1h]
- name: metadb_server_state_refresh_interval
  type: TIME
  default: 60s
  min_value: 10ms
  max_value: 1h
  need_restart: false
  description_en: the interval to refresh metadb server state for getting zone or server newest state, [10ms, 1h]
- name: config_server_refresh_interval
  type: TIME
  default: 60s
  min_value: 10s
  max_value: 1d
  need_restart: false
  description_en: config server info refresh task interval, [10s, 1d]
- name: idc_list_refresh_interval
  type: TIME
  default: 2h
  min_value: 10s
  max_value: 1d
  need_restart: false
  description_en: the interval to refresh idc list for getting newest region-idc, [10s, 1d]
- name: stat_table_sync_interval
  type: TIME
  default: 60s
  min_value: 0s
  max_value: 1d
  need_restart: false
  description_en: update sync statistic to ob_all_proxy_stat table interval, [0s, 1d], 0 means disable, if set a negative value, proxy treat it as 0
- name: stat_dump_interval
  type: TIME
  default: 6000s
  min_value: 0s
  max_value: 1d
  need_restart: false
  description_en: dump statistic in log interval, [0s, 1d], 0 means disable, if set a negative value, proxy treat it as 0
- name: partition_location_expire_relative_time
  type: INT
  default: 0
  min_value: -36000000
  max_value: 36000000
  need_restart: false
  description_en: the unit is ms, 0 means do not expire, others will expire partition location base on relative time
- name: cluster_count_high_water_mark
  type: INT
  default: 256
  min_value: 2
  max_value: 102400
  need_restart: false
  description_en: if cluster count is greater than this water mark, cluser will be kicked out by LRU
- name: cluster_expire_time
  type: TIME
  default: 1d
  min_value: 0
  max_value: 
  need_restart: false
  description_en: cluster resource expire time, 0 means never expire,cluster will be deleted if it has not been accessed for more than the time,[0, ]
- name: fetch_proxy_bin_random_time
  type: TIME
  default: 300s
  min_value: 1s
  max_value: 1h
  need_restart: false
  description_en: max random waiting time of fetching proxy bin in hot upgrade, [1s, 1h]
- name: fetch_proxy_bin_timeout
  type: TIME
  default: 120s
  min_value: 1s
  max_value: 1200s
  need_restart: false
  description_en: default hot upgrade fetch binary timeout, proxy will stop fetching after such long time, [1s, 1200s]
- name: hot_upgrade_failure_retries
  type: INT
  default: 5
  min_value: 1
  max_value: 20
  need_restart: false
  description_en: default hot upgrade failure retries, proxy will stop handle hot_upgrade command after such retries, [1, 20]
- name: hot_upgrade_rollback_timeout
  type: TIME
  default: 24h
  min_value: 1s
  max_value: 30d
  need_restart: false
  description_en: default hot upgrade rollback timeout, proxy will do rollback if receive no rollback command in such long time, [1s, 30d]
- name: hot_upgrade_graceful_exit_timeout
  type: TIME
  default: 120s
  min_value: 0s
  max_value: 30d
  need_restart: false
  description_en: graceful exit timeout, [0s, 30d], if set a value <= 0, proxy treat it as 0
- name: delay_exit_time
  type: TIME
  default: 100ms
  min_value: 100ms
  max_value: 500ms
  need_restart: false
  description_en: delay exit time, [100ms,500ms]
- name: log_file_percentage
  type: INT
  default: 80
  min_value: 0
  max_value: 100
  need_restart: false
  description_en: max percentage of avail size occupied by proxy log file, [0, 90], 0 means ignore such limit
- name: log_cleanup_interval
  type: TIME
  default: 10m
  min_value: 5s
  max_value: 30d
  need_restart: false
  description_en: log file clean up task schedule interval, set 1 day or longer, [5s, 30d]
- name: log_dir_size_threshold
  type: CAPACITY
  default: 64GB
  min_value: 256M
  max_value: 1T
  need_restart: false
  description_en: max usable space size of log dir, used to decide whether should clean up log file, [256MB, 1T]
- name: need_convert_vip_to_tname
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: convert vip to tenant name, which is useful in cloud
- name: long_async_task_timeout
  type: TIME
  default: 60s
  min_value: 1s
  max_value: 1h
  need_restart: false
  description_en: long async task timeout, [1s, 1h]
- name: short_async_task_timeout
  type: TIME
  default: 5s
  min_value: 1s
  max_value: 1h
  need_restart: false
  description_en: short async task timeout, [1s, 1h]
- name: username_separator
  type: STRING_LIST
  default: :;-;.
  min_value: 
  max_value: 
  need_restart: false
  description_en: username separator
- name: enable_client_connection_lru_disconnect
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: if client connections reach throttle, true is that new connection will be accepted, and eliminate lru client connection, false is that new connection will disconnect, and err packet will be returned
R
Rongfeng Fu 已提交
245 246 247 248 249 250 251
- name: max_connections
  type: INT
  default: 60000
  min_value: 0
  max_value: 65535
  need_restart: false
  description_en: max fd proxy could use
O
oceanbase-admin 已提交
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433
- name: client_max_connections
  type: INT
  default: 8192
  min_value: 0
  max_value: 65535
  need_restart: false
  description_en: client max connections for one obproxy, [0, 65535]
- name: observer_query_timeout_delta
  type: TIME
  default: 20s
  min_value: 1s
  max_value: 30s
  need_restart: false
  description_en: the delta value for @@ob_query_timeout, to cover net round trip time(proxy<->server) and task schedule time(server), [1s, 30s]
- name: enable_cluster_checkout
  type: BOOL
  default: true
  min_value: false
  max_value: true
  need_restart: false
  description_en: if enable cluster checkout, proxy will send cluster name when login and server will check it
- name: enable_proxy_scramble
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: false
  description_en: if enable proxy scramble, proxy will send client its variable scramble num, not support old observer
- name: enable_client_ip_checkout
  type: BOOL
  default: true
  min_value: false
  max_value: true
  need_restart: false
  description_en: if enabled, proxy send client ip when login
- name: connect_observer_max_retries
  type: INT
  default: 3
  min_value: 2
  max_value: 5
  need_restart: false
  description_en: max retries to do connect
- name: frequent_accept
  type: BOOL
  default: true
  min_value: false
  max_value: true
  need_restart: true
  description_en: frequent accept
- name: net_accept_threads
  type: INT
  default: 2
  min_value: 0
  max_value: 8
  need_restart: true
  description_en: net accept threads num, [0, 8]
- name: stack_size
  type: CAPACITY
  default: 1MB
  min_value: 1MB
  max_value: 10MB
  need_restart: true
  description_en: stack size of one thread, [1MB, 10MB]
- name: work_thread_num
  type: INT
  default: 128
  min_value: 1
  max_value: 128
  need_restart: true
  description_en: proxy work thread num or max work thread num when automatic match, [1, 128]
- name: task_thread_num
  type: INT
  default: 2
  min_value: 1
  max_value: 4
  need_restart: true
  description_en: proxy task thread num, [1, 4]
- name: block_thread_num
  type: INT
  default: 1
  min_value: 1
  max_value: 4
  need_restart: true
  description_en: proxy block thread num, [1, 4]
- name: grpc_thread_num
  type: INT
  default: 8
  min_value: 8
  max_value: 16
  need_restart: true
  description_en: proxy grpc thread num, [8, 16]
- name: grpc_client_num
  type: INT
  default: 9
  min_value: 9
  max_value: 16
  need_restart: true
  description_en: proxy grpc client num, [9, 16]
- name: automatic_match_work_thread
  type: BOOL
  default: true
  min_value: false
  max_value: true
  need_restart: true
  description_en: ignore work_thread_num configuration item, use the count of cpu for current proxy work thread num
- name: enable_strict_kernel_release
  require: true
  type: BOOL
  default: false
  min_value: false
  max_value: true
  need_restart: true
  description_en: If is true, proxy only support 5u/6u/7u redhat. Otherwise no care kernel release, and proxy maybe unstable
- name: enable_cpu_topology
  type: BOOL
  default: true
  min_value: false
  max_value: true
  need_restart: true
  description_en: enable cpu topology, work threads bind to cpu
- name: local_bound_ip
  type: STRING
  default: 0.0.0.0
  need_restart: true
  description_en: local bound ip(any)
- name: obproxy_config_server_url
  type: STRING
  default: ''
  need_restart: true
  description_en: url of config info(rs list and so on)
- name: proxy_service_mode
  type: STRING
  default: ''
  need_restart: true
  description_en: "proxy deploy and service mode: 1.client(default); 2.server"
- name: proxy_id
  type: INT
  default: 0
  max_value: 255
  min_value: 0
  need_restart: true
  description_en: used to identify each obproxy, it can not be zero if proxy_service_mode is server
- name: app_name
  type: STRING
  default: undefined
  need_restart: true
  description_en: current application name which proxy works for, need defined, only modified when restart
- name: enable_metadb_used
  type: BOOL
  default: true
  max_value: true
  min_value: false
  need_restart: true
  description_en: use MetaDataBase when proxy run
- name: rootservice_cluster_name
  type: STRING
  default: undefined
  need_restart: true
  description_en: default cluster name for rootservice_list
- name: prometheus_cost_ms_unit
  type: BOOL
  default: true
  max_value: true
  min_value: false
  need_restart: true
  description_en: update sync metrics to prometheus exposer interval, [1s, 1h], 0 means disable, if set a negative value, proxy treat it as 0
- name: bt_retry_times
  type: INT
  default: 3
  min_value: 0
  max_value: 100
  need_restart: true
  description_en: beyond trust sdk retry times
- name: obproxy_sys_password
  type: STRING
  default: ''
  need_restart: false
  description_en: password pf obproxy sys user
- name: observer_sys_password
  type: STRING
  default: ''
  need_restart: false
R
Rongfeng Fu 已提交
434 435 436 437 438 439
  description_en: password of observer proxyro user
- name: observer_root_password
  type: STRING
  default: ''
  need_restart: false
  description_en: password of observer root user