Giter Club home page Giter Club logo

Comments (3)

REBELinBLUE avatar REBELinBLUE commented on June 8, 2024

wow, I never thought it would be possible for a deploy to take this long.

The reason is that SSH keys are normally cleaned up when deploy is finished, but if something happens (say the worker crashes) it gets left on the server which isn't great so there is a cronjob to clean up keys older than 12 hours.

For now the simplest fix is to change app/Console/Commands/ClearOldkeys.php and increase the KEEP_FILES_FOR_HOURS constant. Maybe I should make it a config option?

Trying to figure out if the deploy which uses the key is still actually running because much more complicated, although it may be doable.

from deployer.

dgpro avatar dgpro commented on June 8, 2024

Thanks for your response, Stephen.
I'll try to update the constant and see if it helps. Maybe a configurable option is a good idea even if it's rarely going to be changed.
The command used to take just a couple of hours until we moved our servers to AWS and they reduce RDS instance Write IOPS and CPU when it's heavily used unless you pay a lot. But we need to run it maybe once a month so it's not worth it.

from deployer.

dgpro avatar dgpro commented on June 8, 2024

Hi Stephen, I can confirm that changing KEEP_FILES_FOR_HOURS constant in app/Console/Commands/ClearOldKeys.php to a longer period works and we were able successfully complete the deployment.
Thank you!

from deployer.

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.