epam/cloud-pipeline

Syncgit optimization

Opened this issue · 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