Giter VIP home page Giter VIP logo

Comments (9)

rachely3n avatar rachely3n commented on August 13, 2024

One thing I see so far as a block is how to emulate live migration in integration testing.

from google-compute-engine-plugin.

stephenashank avatar stephenashank commented on August 13, 2024

Decided to look into this once you mentioned it. I think this should be usable, but the documentation is pretty sparse: https://cloud.google.com/compute/docs/reference/rest/v1/instances/simulateMaintenanceEvent

It's sparse in the sense that the only explanation given both on that page and the gcloud docs page is "simulates a maintenance event". I'm 90% sure that it means your instance would behave as if a real maintenance event happened (i.e. terminate if required). The other 10% is that it may be a dry run and generate logs without actually doing anything to the instance. That should be easy to test manually at least.

from google-compute-engine-plugin.

ingwarsw avatar ingwarsw commented on August 13, 2024

@RaphC @stephenashank The problem is not with simulating host maintanance
The problem is that we are trying to set wrong value for OnHostMaintenance field when instance gave GPU added..
By default that value is set to migrate but with GPU it needs to be switched to terminate see
https://cloud.google.com/compute/docs/gpus/#restrictions

Now using instances with GPU is available via templates.
My personal opinion is that we should remove support for GPUs in plugin and leave it only via templates (it never worked anyway).

from google-compute-engine-plugin.

ingwarsw avatar ingwarsw commented on August 13, 2024

@rachely3n Why you have copied #63??
It would be much easier to have 1 thread..

from google-compute-engine-plugin.

rachely3n avatar rachely3n commented on August 13, 2024

@ingwarsw simulating the host maintenance in this case would just be for unit testing after I make it so that instances with GPU's terminate on migrate.

what do you mean by

My personal opinion is that we should remove support for GPUs in plugin and leave it only via templates (it never worked anyway).

If it's available in the templates, shouldn't I still support GPU's in the plugin?

from google-compute-engine-plugin.

ingwarsw avatar ingwarsw commented on August 13, 2024

Plugin dont need to support GPU (and never actually did)..
If plugin supports templates most things can be done via them..

Rarely used things that are supported via plugin but could be only supported via templates (and they would made plugin bit simpler)

  • GPU
  • Minimum Cpu Platform

from google-compute-engine-plugin.

ingwarsw avatar ingwarsw commented on August 13, 2024

@ingwarsw simulating the host maintenance in this case would just be for unit testing after I make it so that instances with GPU's terminate on migrate.

But we are never testing migration..
And Im not sure we should, its GCE feature not ours..

from google-compute-engine-plugin.

rachely3n avatar rachely3n commented on August 13, 2024

@ingwarsw
I'm not sure I understand what's going on here. If GPU's can be added via templates, it can be used in the plugin then. I would then want to fix the migration problem for GPU instances by terminating them.

from google-compute-engine-plugin.

rachely3n avatar rachely3n commented on August 13, 2024

Going to keep this at #63 since yes it is easier to just have 1 thread to track this issue.

from google-compute-engine-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.