File: run_cdc.sh.tpl

package info (click to toggle)
tiup 1.16.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,032 kB
  • sloc: sh: 1,988; makefile: 232; sql: 16
file content (41 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -e

# WARNING: This file was auto-generated. Do not edit!
#          All your edit might be overwritten!
DEPLOY_DIR={{.DeployDir}}
cd "${DEPLOY_DIR}" || exit 1

{{- if .NumaNode}}
exec numactl --cpunodebind={{.NumaNode}} --membind={{.NumaNode}} bin/cdc server \
{{- else}}
exec bin/cdc server \
{{- end}}
    --addr "{{.Addr}}" \
    --advertise-addr "{{.AdvertiseAddr}}" \
    --pd "{{.PD}}" \
{{- if .DataDir}}
  {{- if .DataDirEnabled}}
    --data-dir="{{.DataDir}}" \
  {{- else}}
    --sort-dir="{{.DataDir}}/tmp/sorter" \
  {{- end}}
{{- end}}
{{- if .TLSEnabled}}
    --ca tls/ca.crt \
    --cert tls/cdc.crt \
    --key tls/cdc.pem \
{{- end}}
{{- if .GCTTL}}
    --gc-ttl {{.GCTTL}} \
{{- end}}
{{- if .TZ}}
    --tz "{{.TZ}}" \
{{- end}}
{{- if .ClusterID}}
    --cluster-id {{.ClusterID}} \
{{- end}}
{{- if .ConfigFileEnabled}}
    --config conf/cdc.toml \
{{- end}}
    --log-file "{{.LogDir}}/cdc.log" 2>> "{{.LogDir}}/cdc_stderr.log"