How to enable history functionality
History should be configured in common configuration file for all services - globals.yaml.gotmpl. The configuration file's path is - etc/kodjin/{environment}/globals.yaml.gotmpl
History will only start to record events after you enable it. It will not get filled with existing data. For this reason it is highly recommended to enable history before cluster creation
- Check Zookeeper worker group present, if not add it to the file:
etc/cluster/worker-groups.<environment>.auto.tfvars
worker_groups = [
# . . .
{
name = "zookeeper"
instance_type = "t3.small"
additional_userdata = "t3.small"
asg_desired_capacity = 3
asg_max_size = 3
asg_min_size = 3
ami_id = "ami-0dd8af8522cf16846"
kubelet_extra_args = "--node-labels=db=zookeeper --register-with-taints=key=zookeeper:NoSchedule"
root_volume_size = "50"
root_volume_type = "gp3"
enable_monitoring = false
},
]
AMI ID ami-0dd8af8522cf16846 is different per each region.
- Enable
clickhouseandzookeeperreleases in deps:
- Check whether the secrets exist and have the following format:
etc/deps/<environment>/secrets/clickhouse-operator.yaml
Ensure username and password are under secret, not operator.
- Enable the
fhir-server-clickhouse-migrationsrelease in kodjin:
- Enable the
fhir-server-kafka-config-secrets-syncrelease in kodjin:
This release should be enabled by default, anyway you should check it.
- Set
HISTORY_ENABLEDtotruein kodjin globals:
If HISTORY_ENABLED was set to true after cluster creation (which is not recommended) all the relevant releases should be deployed using rmk tool
rmk release sync