From 85f400e575a85fbea65bb279d14135e7d863d2d4 Mon Sep 17 00:00:00 2001 From: Ruslan <11838981+feedmeapples@users.noreply.github.com> Date: Tue, 27 Sep 2022 14:51:25 -0400 Subject: [PATCH] Add postgres es development script (#3429) --- config/development-postgres-es.yaml | 132 ++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 config/development-postgres-es.yaml diff --git a/config/development-postgres-es.yaml b/config/development-postgres-es.yaml new file mode 100644 index 00000000000..47fda6a4cda --- /dev/null +++ b/config/development-postgres-es.yaml @@ -0,0 +1,132 @@ +log: + stdout: true + level: info + +persistence: + defaultStore: postgres-default + visibilityStore: postgres-visibility + advancedVisibilityStore: es-visibility + numHistoryShards: 4 + datastores: + postgres-default: + sql: + pluginName: "postgres" + databaseName: "temporal" + connectAddr: "127.0.0.1:5432" + connectProtocol: "tcp" + user: "temporal" + password: "temporal" + maxConns: 20 + maxIdleConns: 20 + maxConnLifetime: "1h" + postgres-visibility: + sql: + pluginName: "postgres" + databaseName: "temporal_visibility" + connectAddr: "127.0.0.1:5432" + connectProtocol: "tcp" + user: "temporal" + password: "temporal" + maxConns: 2 + maxIdleConns: 2 + maxConnLifetime: "1h" + es-visibility: + elasticsearch: + version: "v7" + logLevel: "error" + url: + scheme: "http" + host: "127.0.0.1:9200" + indices: + visibility: temporal_visibility_v1_dev + # secondary_visibility: temporal_visibility_v2_dev + closeIdleConnectionsInterval: 15s + +global: + membership: + maxJoinDuration: 30s + broadcastAddress: "127.0.0.1" + pprof: + port: 7936 + metrics: + prometheus: +# # specify framework to use new approach for initializing metrics and/or use opentelemetry +# framework: "opentelemetry" + framework: "tally" + timerType: "histogram" + listenAddress: "127.0.0.1:8000" + +services: + frontend: + rpc: + grpcPort: 7233 + membershipPort: 6933 + bindOnLocalHost: true + + matching: + rpc: + grpcPort: 7235 + membershipPort: 6935 + bindOnLocalHost: true + + history: + rpc: + grpcPort: 7234 + membershipPort: 6934 + bindOnLocalHost: true + + worker: + rpc: + grpcPort: 7239 + membershipPort: 6939 + bindOnLocalHost: true + +clusterMetadata: + enableGlobalNamespace: false + failoverVersionIncrement: 10 + masterClusterName: "active" + currentClusterName: "active" + clusterInformation: + active: + enabled: true + initialFailoverVersion: 1 + rpcName: "frontend" + rpcAddress: "localhost:7233" + +dcRedirectionPolicy: + policy: "noop" + toDC: "" + +archival: + history: + state: "enabled" + enableRead: true + provider: + filestore: + fileMode: "0666" + dirMode: "0766" + gstorage: + credentialsPath: "/tmp/gcloud/keyfile.json" + visibility: + state: "enabled" + enableRead: true + provider: + filestore: + fileMode: "0666" + dirMode: "0766" + +namespaceDefaults: + archival: + history: + state: "disabled" + URI: "file:///tmp/temporal_archival/development" + visibility: + state: "disabled" + URI: "file:///tmp/temporal_vis_archival/development" + +publicClient: + hostPort: "localhost:7233" + +dynamicConfigClient: + filepath: "config/dynamicconfig/development-sql.yaml" + pollInterval: "10s"