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

feat: Add missing fields of keypair resource policy #2146

Merged
merged 3 commits into from
May 28, 2024

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented May 15, 2024

follows #2013

TL;DR

Added missing fields of keypair_resource_policy such as max_pending_session_count,max_pending_session_resource_slots, max_session_lifetime, and max_concurrent_sftp_sessions.

What changed?

  • The PR adds new options max_pending_session_count and max_pending_session_resource_slots to the keypair resource policy CLI commands and functions.
  • max_concurrent_sftp_sessions is added to KeypairResourcePolicy that is missed in feat: concurrency limit for system sessions #1299.

How to test?

Ensure that the new options can be set and updated successfully in the keypair resource policy.

Why make this change?

The change introduces new flexibility by allowing users to set maximum pending sessions and resource slots for pending sessions in the keypair resource policy.


Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Installer updates including:
    • Fixtures for db schema changes
    • New mandatory config options
  • Update of end-to-end CLI integration tests in ai.backend.test
  • API server-client counterparts (e.g., manager API -> client SDK)
  • Test case(s) to:
    • Demonstrate the difference of before/after
    • Demonstrate the flow of abstract/conceptual models with a concrete implementation
  • Documentation
    • Contents in the docs directory
    • docstrings in public interfaces and type annotations

Copy link

graphite-app bot commented May 15, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the comp:client Related to Client component label May 15, 2024
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @agatha197 and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the size:S 10~30 LoC label May 15, 2024
@agatha197 agatha197 changed the title chore: Add max_pending_session_count and max_pending_session_resource_slots fields to keypair_resource_policy cli feat: add max pending session count and resource slots in keypair resource policy of client-py May 15, 2024
@agatha197 agatha197 force-pushed the feature/add-max_pending_session_count-to-client branch from 6203cb2 to 5b7729a Compare May 15, 2024 07:24
@agatha197 agatha197 added this to the 24.03 milestone May 15, 2024
Copy link
Contributor

@fregataa fregataa left a comment

Choose a reason for hiding this comment

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

It works well!
could you add those missing options to CLI keypair-resource-policy command?

@agatha197 agatha197 marked this pull request as draft May 20, 2024 02:47
@agatha197 agatha197 force-pushed the feature/add-max_pending_session_count-to-client branch from 5b7729a to 91b9288 Compare May 20, 2024 03:33
@github-actions github-actions bot added comp:manager Related to Manager component comp:cli Related to CLI component size:M 30~100 LoC and removed size:S 10~30 LoC labels May 20, 2024
@agatha197 agatha197 force-pushed the feature/add-max_pending_session_count-to-client branch from 91b9288 to 147ba34 Compare May 20, 2024 03:34
@agatha197 agatha197 changed the title feat: add max pending session count and resource slots in keypair resource policy of client-py Add missing fields of keypair resource policy May 20, 2024
@agatha197 agatha197 changed the title Add missing fields of keypair resource policy feat: Add missing fields of keypair resource policy May 20, 2024
…rce_slots` fields to keypair_resource_policy
@agatha197 agatha197 force-pushed the feature/add-max_pending_session_count-to-client branch from 606c7f7 to 0e43a26 Compare May 20, 2024 03:40
@agatha197 agatha197 force-pushed the feature/add-max_pending_session_count-to-client branch from 0e43a26 to 09ba91a Compare May 20, 2024 03:53
@agatha197 agatha197 marked this pull request as ready for review May 20, 2024 03:54
@agatha197
Copy link
Contributor Author

It works well! could you add those missing options to CLI keypair-resource-policy command?

I added more missing options such as max_concurrent_sftp_sessions and max_session_lifetime.

@kyujin-cho kyujin-cho enabled auto-merge (squash) May 28, 2024 16:09
@kyujin-cho kyujin-cho merged commit 4811e58 into main May 28, 2024
25 of 27 checks passed
@kyujin-cho kyujin-cho deleted the feature/add-max_pending_session_count-to-client branch May 28, 2024 16:12
lablup-octodog pushed a commit that referenced this pull request May 28, 2024
Co-authored-by: Kyujin Cho <kyujin.cho@lablup.com>
Backported-from: main (24.09)
Backported-to: 24.03
Backport-of: 2146
Copy link

Backport to 24.09 is failed. Please backport manually.

lablup-octodog added a commit that referenced this pull request May 28, 2024
Co-authored-by: Kyujin Cho <kyujin.cho@lablup.com>

Co-authored-by: Sujin Kim <kimsujin@lablup.com>
Backported-from: main (24.09)
Backported-to: 24.03
Backport-of: 2146
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:cli Related to CLI component comp:client Related to Client component comp:manager Related to Manager component size:M 30~100 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants