Skip to main content

Recovering from DISCONNECTED in Gurobi Instant Cloud

Answered

Comments

3 comments

  • Elisabeth Rodriguez Heck
    • Gurobi Staff

    Hi Timo,

    We'll create a ticket from your post and handle this directly.

    Best regards,

    Elisabeth

    0
  • Gwyneth Butera
    • Gurobi Staff

    The issue here was likely caused by some transient network issues from AWS. One thing you can try is increasing the ServerTimeout parameter from the default 60 seconds. This will give your client machine more time to recover from those network issues. 

    0
  • Igor Ganapolsky

    Adding a practical recovery pattern on top of Gwyneth's ServerTimeout tip: 1. Treat DISCONNECTED as a hard session loss — do not reuse the old Env/Model. Build a fresh gp.Env() with current Instant Cloud credentials, then a new Model. 2. Before/during long MIPs, checkpoint progress yourself: write periodic .mst MIP starts (or incumbent solutions) from a callback / external watchdog so a reconnect does not lose 90 minutes of work. 3. On the client EC2 side, wrap Model.optimize() in retry logic that only rebuilds after DISCONNECTED, reloads the latest .mst, and continues. 4. Increase ServerTimeout as Gwyneth suggested, and keep the client process from sleeping (Jupyter idle/timeout can look identical to a cloud disconnect). That combination (timeout + restartable Env + MIP-start checkpoints) is what usually turns a one-shot long cloud run into something you can resume.

    0

Please sign in to leave a comment.