Skip to content

[proxy] Remove slow-server config #16448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 3 additions & 53 deletions components/proxy/conf/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,6 @@
}
}

(slow_fast_matchers) {
@slow {
header X-Gitpod-Slow-Database "true"
}

@fast {
not header X-Gitpod-Slow-Database "true"
}
}

# Kubernetes health-check
:8003 {
respond /live 200
Expand Down Expand Up @@ -228,24 +218,9 @@ https://{$GITPOD_DOMAIN} {

gitpod.sec_websocket_key

forward_auth server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
uri /feature-flags/slow-database

header_up -Connection
header_up -Upgrade

copy_headers X-Gitpod-Slow-Database
}

import slow_fast_matchers

uri strip_prefix /api

reverse_proxy @fast server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
import upstream_connection
}

reverse_proxy @slow slow-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
import upstream_connection
}
}
Expand All @@ -256,23 +231,9 @@ https://{$GITPOD_DOMAIN} {
base_domain {$GITPOD_DOMAIN}
}

forward_auth server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
uri /feature-flags/slow-database
copy_headers X-Gitpod-Slow-Database
}

import slow_fast_matchers

uri strip_prefix /api

reverse_proxy @fast server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
import upstream_connection

# required for smooth streaming of terminal logs
flush_interval -1
}

reverse_proxy @slow slow-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
import upstream_connection

# required for smooth streaming of terminal logs
Expand Down Expand Up @@ -324,18 +285,7 @@ https://{$GITPOD_DOMAIN} {
handle @to_server {
import compression

forward_auth server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
uri /feature-flags/slow-database
copy_headers X-Gitpod-Slow-Database
}

import slow_fast_matchers

reverse_proxy @fast server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
import upstream_connection
}

reverse_proxy @slow slow-server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
reverse_proxy server.{$KUBE_NAMESPACE}.{$KUBE_DOMAIN}:3000 {
import upstream_connection
}
}
Expand Down