devspace icon indicating copy to clipboard operation
devspace copied to clipboard

Really slow port forwarding connection

Open shinebayar-g opened this issue 1 year ago • 1 comments

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 avatar Jan 24 '25 23:01 shinebayar-g

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..

shinebayar-g avatar Jan 24 '25 23:01 shinebayar-g

No, we don't have a way to provide that. Sorry for the late response,.

deniseschannon avatar Jun 27 '25 15:06 deniseschannon