Skip to content

Comments

Spot instantiation, run_task command and creation failure policies.#26

Open
ArturRSoda wants to merge 19 commits intolapesd:mainfrom
ArturRSoda:artur
Open

Spot instantiation, run_task command and creation failure policies.#26
ArturRSoda wants to merge 19 commits intolapesd:mainfrom
ArturRSoda:artur

Conversation

@ArturRSoda
Copy link
Contributor

@ArturRSoda ArturRSoda commented Jun 26, 2025

Implementation of spot instantiation.

and

Initial implementation of run_task command.

  • Peek 2025-07-29 09-07

and

Implementation of three policies in instances creation failure:

  • Cancel:

    • If any instance fails to launch, terminate the whole cluster, clean up all resources, and return the error.

    • Terminal on failure to instantiate instances with cancel policy:

    • image

  • On-demand:

    • If any instance fails to launch, terminate the whole cluster, cleaning up all resources, and try calling again the spawn function changing the allocation mode of the failed node to 'on-demand'.

    • Terminal on failure to instantiate instances with on-demand policy:

    • image
  • Migrate:

    • If any instance fails to launch, terminate the whole cluster, cleaning up all resources, and try calling again the spawn function with a new cluster configuration with the next availability-zone.

    • The application tries to migrate for MAX_MIGRATION_ATTEMPTS, if all the attempts fail, it just returns the error.

    • Terminal on failure to instantiate instances with migrate policy:

    • image

@ArturRSoda ArturRSoda changed the title Spot instantiation Spot instantiation and creation failure policies. Jul 21, 2025
@ArturRSoda ArturRSoda changed the title Spot instantiation and creation failure policies. Spot instantiation, run_task command and creation failure policies. Jul 29, 2025
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.

1 participant