Hitachi

Hitachi Microservices Platform - Paxos Commit Transaction Orchestrator ユーザーズガイド


3.7.4 TP1-BridgeのHelmチャートのカスタマイズ(通常版かつTP1-Bridge限定)

TP1-Bridgeを使用する場合、TP1-BridgeのHelmチャートをカスタマイズするために、helm show valuesコマンドを実行して、TP1-BridgeのHelmチャートパッケージファイル(tp1-bridge-V.R.S.tgz)からデフォルト設定のvalues.yamlを抽出してください。コマンド例を次に示します。

helm show values ./tp1-bridge-V.R.S.tgz > ./tp1-bridge-values.yaml

注 V.R.Sは使用するHMP-PCTOのバージョンに合わせて読み替えてください。

8.3.2 TP1-Bridge(通常版かつTP1-Bridge限定)」に記載されているHelmチャートのvalues.yamlの各パラメタについて、必須パラメタの定義、および任意パラメタを必要に応じてデフォルト値から変更してください。

Helmチャートのカスタマイズ例を次に示します。

namespace: my-namespace
image: myregistry.example.com/myproject/tp1-bridge:V.R.S
imagePullSecrets:
- name: regcred
imagePullPolicy: IfNotPresent
dependencyCheck:
  enabled: true
  image: myregistry.example.com/myproject/dependency-checker:V.R.S
  imagePullPolicy: IfNotPresent
  retryCount: 30
  retryIntervalSeconds: 10
  connectTimeoutSeconds: 10
  readTimeoutSeconds: 10
  targets:
  - my-namespace/statefulsets/mediator
  - my-namespace/statefulsets/eads-server
filebeat:
  image: myregistry.example.com/myproject/filebeat:V.R.S
  imagePullPolicy: IfNotPresent
  output:
    logstash:
      namespace: my-namespace
  livenessProbe:
    initialDelaySeconds: 10
    periodSeconds: 10
    failureThreshold: 3
    timeoutSeconds: 5
  readinessProbe:
    initialDelaySeconds: 10
    periodSeconds: 10
    failureThreshold: 3
    timeoutSeconds: 5
healthCheck:
  enabled: true
livenessProbe:
  initialDelaySeconds: 180
  periodSeconds: 30
  failureThreshold: 3
  timeoutSeconds: 10
  healthCheck:
    retryCount: 0
    retryIntervalSeconds: 0
    connectTimeoutSeconds: 10
    readTimeoutSeconds: 10
postStart:
  healthCheck:
    retryCount: 30
    retryIntervalSeconds: 10
    connectTimeoutSeconds: 10
    readTimeoutSeconds: 10
preStop:
  waitTransactions:
    retryCount: 30
    retryIntervalSeconds: 10
    connectTimeoutSeconds: 10
    readTimeoutSeconds: 10
terminationGracePeriodSeconds: 330
affinity: {}
resources:
  limits:
    cpu: 2
    memory: 1Gi
  requests:
    cpu: 1
    memory: 512Mi
server:
  tomcat:
    threads:
      max: 200
    maxSwallowSize: "2097152"
converter:
  host: converter
  port: 8008
  connectTime: 10
  watchTime: 10
tp1:
  cltj:
    dchost: tp1
    dcrapport: 5001
    dcwatchtim: 180
    dcwatchtiminherit: "N"
    dcwatchtimrpcinherit: "N"
    dccltdelay: 0
    dcuaptrace: "N"
    dcuaptracepath: /deployments/tp1-log
    dcuaptracesize: 4096
    dcdatatrace: "N"
    dcdatatracepath: /deployments/tp1-log
    dcdatatracesize: 4096
    dcdatatracemaxsize: 128
    dcerrtrace: "N"
    dcerrtracepath: /deployments/tp1-log
    dcerrtracesize: 4096
    dcmethodtrace: "N"
    dcmethodtracepath: /deployments/tp1-log
    dcmethodtracesize: 4096
    dccltrpcmaxmsgsize: 1
    dccltsendbuffsize: 8192
    dccltrecvbuffsize: 8192
  commit:
    retryLimit: -1
    retryIntervalInMillis: 1000
  rollback:
    retryLimit: -1
    retryIntervalInMillis: 1000
  xaServerName: sample
  pool:
    allocationWaitTimeInMillis: 61000
    maxPoolSize: 10
  mediator:
    port: 20551
  pod:
    serviceName: tp1-bridge1.my-namespace
  transactionTermination:
    timeoutInMillis: 60000
    consensus:
      replayIntervalInMillis: 1000
  participantProcessing:
    threadPoolSize: 12
    queueSize: 25
externalConsensus:
  intervalInMillis: 1000
  eads:
    properties: /eads-properties/hmp-pcto.eads-client.properties
    cache: hmppctoCache
mediator:
  name: "mediator"
  nameSuffix: ".mediator.my-namespace.svc.cluster.local"
  port: 20552
mediatorProcessManagement:
  threadPoolSize: 30
mediatorCommunication:
  threadPoolSize: 30
  queueSize: 25
http:
  port: 20554
grpc:
  port: 20552
  useTls: false
  authSkip: false
  tls:
    secretName: ""
    clientAuth:
      enabled: false
    session:
      cacheSize: 0
      timeout: 0
  keepalive:
    interval: 0
    timeout: 60
  watchtime: 5
tracing:
  instanceId: ""
  url: http://jaeger-collector:14268/api/traces
  traceUse: true
  queueSize: 20000
  delayTime: 1000
  batchSize: 2000
  grpc:
    traceSize: 256
metrics:
  collection:
    intervalInMillis: 1000
timezone: Asia/Tokyo
java:
  options: -XX:+UseG1GC
logging:
  level:
    pctoStd: INFO
ucars:
  enabled: true
  snapshots:
    claimName: snapshot-volume
eads:
  client:
    properties: |
      eads.client.connect.servers=sv1,sv2,sv3
      eads.client.sv1.address=eads-service-eads-service-0.my-namespace
      eads.client.sv1.port=24600
      eads.client.sv2.address=eads-service-eads-service-1.my-namespace
      eads.client.sv2.port=24600
      eads.client.sv3.address=eads-service-eads-service-2.my-namespace
      eads.client.sv3.port=24600
      eads.client.logger.dir=eads-log
      eads.client.connectionPool.poolsize=1
注※

V.R.Sは使用するHMP-PCTOのバージョンに合わせて読み替えてください。

この例は、次のとおりパラメタの値を指定しています。

重要

Helmチャートのカスタマイズ時の注意事項