Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.0
    • Component/s: None
    • Labels:
      None
    • Rank:
      1|i00c8n:

      Description

      Provisioners should be able to control how often status is polled when waiting for a provision or deprovision operation to complete. For example, the GCE provisioner may know that almost all clusters complete after 90 seconds, but never before 60 seconds, so it may not want to poll for status in the first minute.

      One way to do this is to have the provisioner return a PollingStrategy that will define how often to poll. It could be something like:

      public interface Provisioner {
        ...
      
        PollingStrategy getPollingStrategy(ProvisionerContext context);
      }
      
      public interface PollingStrategy {
        long nextPoll(int attempts, long startTime);
      }
      

      with some default strategies in the SPI

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ashau Albert Shau
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: