cloud-pipeline icon indicating copy to clipboard operation
cloud-pipeline copied to clipboard

Syncgit optimization

Open okolesn opened this issue 1 year ago • 0 comments

Background Let's implement optimization of the git-sync daemon. Currently it makes a lot of /metadata/load calls to check if we need to refresh user ssh keys. Most of the time such calls would be "excess" because nothing is changed in pipeline or user configuration. So, let's change a logic it the following way:

  • Introduce new env variable of git-sync service SYNC_GIT_RESYNC_USER_SSH_KEYS_FREQUENCY.
  • This env defines after which iteration of the sync script git-sync will try to resync users ssh keys even if nothing was changed

okolesn avatar Jul 04 '24 05:07 okolesn