Best Practise for API usage during server-restarts

Discussion in 'Developers' Forum' started by WHO, Feb 12, 2019.

  1. WHO

    WHO New Member HowtoForge Supporter

    How can webserver restarts be handled while sending data to the api.
    We often get a curl_error because the connection break uppon restarts.
    We tried a "exec retry on error loop" but it's not working satisfactory.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I use a dedicated control panel server/vm to avoid such effects.
     
  3. WHO

    WHO New Member HowtoForge Supporter

    Does this mean a multiserver setup? We would like to avoid a seperate panel server because of the different login urls for web/mail/db and isp panel.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then I don't see any way to avoid the problem, you can only add some code in your api client which retries the connection when it fails.
     

Share This Page