Skip to content

set externalTrafficPolicy for Pylon and SSH service - #104

Merged
Rui Gao (hippogr) merged 1 commit into
devfrom
ruigao/fix-slow-pylon
Nov 6, 2025
Merged

set externalTrafficPolicy for Pylon and SSH service#104
Rui Gao (hippogr) merged 1 commit into
devfrom
ruigao/fix-slow-pylon

Conversation

@hippogr

Copy link
Copy Markdown
Contributor

The default value of externalTrafficPolicy setting of load balancer for Pylon and SSH is Cluster, which means that the requests will send to either paimaster node or sysnodepool nodes. Since both of the services are running only on paimaster node, it may bring performance issues. In this PR, we set the value of externalTrafficPolicy to Local so the requests will be sent to paimaster directly.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the network routing for Pylon and SSH services by configuring externalTrafficPolicy: Local on their LoadBalancer services. Since these services run exclusively on the paimaster node, this change prevents unnecessary routing through worker nodes, improving performance and reducing latency.

Key changes:

  • Added externalTrafficPolicy: Local to SSH proxy LoadBalancer service configuration
  • Added externalTrafficPolicy: Local to Pylon LoadBalancer service configuration

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/ssh-proxy/deploy/ssh-proxy.yaml.template Added externalTrafficPolicy configuration to optimize SSH service routing
src/pylon/deploy/pylon-service.yaml Added externalTrafficPolicy configuration to optimize Pylon service routing

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@yukirora Yuting Jiang (yukirora) mentioned this pull request Nov 4, 2025
26 tasks
@hippogr
Rui Gao (hippogr) merged commit 8c2c69f into dev Nov 6, 2025
1 check passed
@yukirora Yuting Jiang (yukirora) mentioned this pull request Nov 11, 2025
25 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants