As mentioned in the post, I am trying to tune temporal performance by adding a dynamic config. But it always gives the following error:
{"level":"info","ts":"2020-11-24T20:25:52.101Z","msg":"Error creating file based dynamic config client, use no-op config client instead.","error":"failed to decode dynamic config yaml: unmarshal errors:\n line 2: cannot unmarshal !!map into []*dynamicconfig.constrainedValue","logging-call-at":"server.go:129"}
Here is the docker-compose snippet:
temporal:
image: temporalio/auto-setup:${SERVER_TAG:-1.3.1}
volumes:
- ${DYNAMIC_CONFIG_DIR:-/etc/temporal/config/dynamicconfig}:/etc/temporal/config/dynamicconfig
environment:
DB: "mysql"
DB_PORT: "3306"
MYSQL_USER: "root"
MYSQL_PWD: "root"
MYSQL_SEEDS: "mysql"
DYNAMIC_CONFIG_FILE_PATH: "/etc/temporal/config/dynamicconfig/poc.yaml"
depends_on:
- mysql
Contents of /etc/temporal/config/dynamicconfig/poc.yaml
inside the docker is the same as this dynamicConfig.
Any pointers to troubleshoot this further will be appreciated.