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

Condition check for appwrappers #131

Open
VanillaSpoon opened this issue Aug 30, 2023 · 0 comments
Open

Condition check for appwrappers #131

VanillaSpoon opened this issue Aug 30, 2023 · 0 comments

Comments

@VanillaSpoon
Copy link
Contributor

VanillaSpoon commented Aug 30, 2023

Name of Feature or Improvement

Condition check for appwrappers with regards to quota. Currently Instascale doesn't seem to clarify the quota.

Description of Problem the Feature Should Solve

Currently Instascale looks for the appwrapper to be in "enqueued" state, and attempts to scale up. This will be handled correctly if the appwrapper is enqueued due to insufficient resources. However, if there are insufficient quota, instascale will fail to scale, without providing feedback for the reason.

Insufficient quota - Would not scale up - return information to user
Insufficient resources - Scale up.

The status of an appwrapper is provided as follows:

Status:
  Conditions:
    Last Transition Micro Time:  2023-08-30T10:12:09.846096Z
    Last Update Micro Time:      2023-08-30T10:12:09.846096Z
    Status:                      True
    Type:                        Init
    Last Transition Micro Time:  2023-08-30T10:12:09.905764Z
    Last Update Micro Time:      2023-08-30T10:12:09.905764Z
    Reason:                      AwaitingHeadOfLine
    Status:                      True
    Type:                        Queueing
    Last Transition Micro Time:  2023-08-30T10:12:09.964831Z
    Last Update Micro Time:      2023-08-30T10:12:09.964831Z
    Reason:                      FrontOfQueue.
    Status:                      True
    Type:                        HeadOfLine
    Last Transition Micro Time:  2023-08-30T10:12:09.995297Z
    Last Update Micro Time:      2023-08-30T10:12:09.995297Z
    Message:                     Insufficient resources to dispatch AppWrapper.
    Reason:                      AppWrapperNotRunnable.
    Status:                      True
    Type:                        Backoff
  Controllerfirsttimestamp:      2023-08-30T10:12:09.846096Z
  Filterignore:                  true
  Queuejobstate:                 Backoff
  Sender:                        before [backoff] - Rejoining
  State:                         Pending

When in the Pending state (Which is read as enqueued by instascale) the message can be:

  • "Insufficient quota to dispatch AppWrapper."
  • " Insufficient resources to dispatch AppWrapper."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant