github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/tests/_utils/make_tiflash_config (about)

     1  #!/bin/sh
     2  
     3  cat > $TEST_DIR/tiflash-learner.toml <<EOF
     4  [rocksdb]
     5  wal-dir = ""
     6  
     7  [security]
     8  ca-path = "$TEST_DIR/certs/ca.pem"
     9  cert-path = "$TEST_DIR/certs/tiflash.pem"
    10  key-path = "$TEST_DIR/certs/tiflash.key"
    11  
    12  [server]
    13  addr = "0.0.0.0:20170"
    14  advertise-addr = "127.0.0.1:20170"
    15  engine-addr = "127.0.0.1:3930"
    16  status-addr = "$TIFLASH_STATUS"
    17  
    18  [storage]
    19  data-dir = "$TEST_DIR/tiflash/data"
    20  reserve-space = "1KB"
    21  EOF
    22  
    23  cat > $TEST_DIR/tiflash.toml <<EOF
    24  default_profile = "default"
    25  display_name = "TiFlash"
    26  https_port = 8125
    27  listen_host = "0.0.0.0"
    28  mark_cache_size = 5368709120
    29  path = "$TEST_DIR/tiflash/data"
    30  tcp_port_secure = 9002
    31  tmp_path = "$TEST_DIR/tiflash/tmp"
    32  capacity = "10737418240"
    33  
    34  [application]
    35  runAsDaemon = true
    36  
    37  [flash]
    38  service_addr = "127.0.0.1:3930"
    39  tidb_status_addr = "127.0.0.1:10080"
    40  
    41  [flash.proxy]
    42  config = "$TEST_DIR/tiflash-learner.toml"
    43  log-file = "$TEST_DIR/tiflash-proxy.log"
    44  
    45  [flash.flash_cluster]
    46  cluster_manager_path = "$PWD/bin/flash_cluster_manager"
    47  log = "$TEST_DIR/tiflash-manager.log"
    48  master_ttl = 60
    49  refresh_interval = 20
    50  update_rule_interval = 5
    51  
    52  [logger]
    53  count = 20
    54  level = "trace"
    55  log = "$TEST_DIR/tiflash-stdout.log"
    56  errorlog = "$TEST_DIR/tiflash-stderr.log"
    57  size = "1000M"
    58  
    59  [raft]
    60  pd_addr = "$PD_ADDR"
    61  
    62  [profiles]
    63  [profiles.default]
    64  load_balancing = "random"
    65  max_memory_usage = 10000000000
    66  use_uncompressed_cache = 0
    67  
    68  [users]
    69  [users.default]
    70  password = ""
    71  profile = "default"
    72  quota = "default"
    73  [users.default.networks]
    74  ip = "::/0"
    75  [users.readonly]
    76  password = ""
    77  profile = "readonly"
    78  quota = "default"
    79  [users.readonly.networks]
    80  ip = "::/0"
    81  
    82  [quotas]
    83  [quotas.default]
    84  [quotas.default.interval]
    85  duration = 3600
    86  errors = 0
    87  execution_time = 0
    88  queries = 0
    89  read_rows = 0
    90  result_rows = 0
    91  
    92  [security]
    93  ca_path = "$TEST_DIR/certs/ca.pem"
    94  cert_path = "$TEST_DIR/certs/tiflash.pem"
    95  key_path = "$TEST_DIR/certs/tiflash.key"
    96  EOF