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

test:[NPM] Adding service deployment for the scale test #2007

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

vipul-21
Copy link
Contributor

@vipul-21 vipul-21 commented Jun 8, 2023

Reason for Change:
Adding the option to deploy service for each set of deployments for scale test. Each service will be mapped to the respective deployment(having certain number of pods per deployment)

Issue Fixed:

Requirements:

Notes:

@vipul-21 vipul-21 requested a review from a team as a code owner June 8, 2023 15:42
@vipul-21 vipul-21 requested a review from csfmomo June 8, 2023 15:42
camrynl
camrynl previously approved these changes Jun 8, 2023
@vipul-21 vipul-21 enabled auto-merge (squash) June 8, 2023 16:36
Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

This is awesome. Minor comments

local numDeployments=$2
local serviceKind=$3

for i in $(seq -f "%05g" 1 $numServices); do
Copy link
Contributor

Choose a reason for hiding this comment

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

to make --num-services optional, I think you'll need to set a default value of 0 somewhere

@@ -406,6 +427,7 @@ set -x
$KUBECTL $KUBECONFIG_ARG create ns scale-test
$KUBECTL $KUBECONFIG_ARG apply -f generated/kwok-nodes/
$KUBECTL $KUBECONFIG_ARG apply -f generated/deployments/real/
$KUBECTL $KUBECONFIG_ARG apply -f generated/services/real/
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cool, will add it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could we also modify these NPM calculations:

  • increase number of NPM IPSets by numRealDeployments when numServices > 0
  • increase number of IPSet members by numRealPods

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So for:

  • numIPSetsAddedByNPM : I can add the numRealDeployments if numServices > 0
  • numIPSetMembersAddedByNPM: Add numRealPods if numServices > 0 ? @huntergregory

Copy link
Contributor

Choose a reason for hiding this comment

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

ya exactly

@vipul-21 vipul-21 disabled auto-merge June 8, 2023 17:19
@vipul-21 vipul-21 force-pushed the singhvipul/scaletest branch from f04d1a7 to 0f340e0 Compare June 8, 2023 19:35
@vipul-21 vipul-21 requested a review from huntergregory June 8, 2023 22:36
@vipul-21 vipul-21 added npm Related to NPM. linux labels Jun 9, 2023
@vipul-21 vipul-21 enabled auto-merge (squash) June 16, 2023 15:33
huntergregory
huntergregory previously approved these changes Jun 16, 2023
@vipul-21 vipul-21 merged commit 51152f3 into master Jun 20, 2023
@vipul-21 vipul-21 deleted the singhvipul/scaletest branch June 20, 2023 02:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linux npm Related to NPM.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants