Path: blob/main/components/ws-manager-bridge/src/config.ts
2498 views
/**1* Copyright (c) 2020 Gitpod GmbH. All rights reserved.2* Licensed under the GNU Affero General Public License (AGPL).3* See License.AGPL.txt in the project root for license information.4*/56import { WorkspaceCluster } from "@gitpod/gitpod-protocol/lib/workspace-cluster";7import { ClusterServiceServerOptions } from "./cluster-service-server";89export const Configuration = Symbol("Configuration");10export interface Configuration {11// the installation this ws-manager-bridge instance is a) running in and b) controls12installation: string;1314staticBridges: WorkspaceCluster[];1516// configures how the ClusterServiceServer is run17clusterService: ClusterServiceServerOptions;1819// The interval in which fresh WorkspaceCluster-state is polled from the DB20wsClusterDBReconcileIntervalSeconds: number;2122// controllerIntervalSeconds configures how often we check for invalid workspace states23controllerIntervalSeconds: number;2425// controllerMaxDisconnect configures how long the controller may be disconnected from ws-manager before it emits a warning26controllerMaxDisconnectSeconds: number;2728// timeouts configures the timeout behaviour of pre-workspace cluster workspaces29timeouts: {30preparingPhaseSeconds: number;31buildingPhaseSeconds: number;32unknownPhaseSeconds: number;33pendingPhaseSeconds: number;34stoppingPhaseSeconds: number;35};3637// clusterSyncIntervalSeconds configures how often we sync workspace cluster information38clusterSyncIntervalSeconds: number;3940redis: {41address: string;42};43}444546