Skip to content
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

Really slow port forwarding connection #2934

Open
shinebayar-g opened this issue Jan 24, 2025 · 1 comment
Open

Really slow port forwarding connection #2934

shinebayar-g opened this issue Jan 24, 2025 · 1 comment
Labels
kind/bug Something isn't working

Comments

@shinebayar-g
Copy link

shinebayar-g commented Jan 24, 2025

What happened?
Really slow port forwarded connection

What did you expect to happen instead?
Fast seamless connection

How can we reproduce the bug? (as minimally and precisely as possible)

My devspace.yaml:

version: v2beta1
name: quickstart-nodejs

pipelines:
  dev:
    run: |-
      run_dependencies --all
      create_deployments --all
      start_dev --all

deployments:
  app:
    kubectl:
      manifests:
        - ./deployment.yaml

dev:
  app:
    namespace: dev
    labelSelector:
      app: astro-dev
    devImage: node:22.13-slim
    terminal: {}
    sync:
      - path: ./:/app
        excludeFile: .gitignore
    ports:
      - port: "4321:4321"

deployment.yaml file:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: astro-dev
  namespace: dev
  labels:
    app: astro-dev
spec:
  replicas: 1
  selector:
    matchLabels:
      app: astro-dev
  template:
    metadata:
      labels:
        app: astro-dev
    spec:
      terminationGracePeriodSeconds: 5
      containers:
        - image: node:22.13-slim
          imagePullPolicy: IfNotPresent
          name: astro-dev
  1. Create a new astro project with pnpm create astro@latest.
  2. Run devspace dev and install pnpm with npm i -g pnpm
  3. Start the astro project with pnpm dev
  4. Connect to http://localhost:4321

Notice that connection is really really slow.

Local Environment:

  • DevSpace Version: 6.3.14
  • Operating System: linux
  • ARCH of the OS: AMD64
    Kubernetes Cluster: ARM64
  • Cloud Provider: cloud provider - other
  • Kubernetes Version: Server Version: v1.32.1

Anything else we need to know?

Is there some kind of access log for Devspace connections?

@shinebayar-g shinebayar-g added the kind/bug Something isn't working label Jan 24, 2025
@shinebayar-g
Copy link
Author

This is unfortunate.. It seems connection issue is intermittent and could be potentially related to the cloud provider.
Is there a way see the access log for devspace port forwarded connection and troubleshoot further?
As far as I can see in the application log, connections are handled within a few milliseconds..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant