I have a small node express application setup on a 1x micro-tier.
After I deploy my application, the servertime (new Date()) is fine, but slowly it starts to drift backwards.
If I don’t deploy a new version for a while, the server time becomes more and more out of sync. > 5 seconds or more.
Wondering if these instances have any sort of syncronisation with NTP, of if there’s any way to fix this.
I ended up just using a Dockerfile instead of buildpacks. Seems like by using
node:lts time is no longer drifting.
Using a Dockerfile, the time now drifts foward. Not able to pinpoint where the drift is happening though.
Thank you for your report, you are right this is not expected.
After some investigation, we found the potential root cause for this drift.
We will be releasing a fix within the next few days.
I will post here to update you once it’s completely patched.
This should be fixed now, can you tell me if you are still experiencing drift ?
Amazing @bastien -
It usually takes a bit of time before i can notice it.
- Should I use my Dockerfile, or Buildpacks?
- Should I redeploy?
Any of Dockerfile or buildpack.
And yes you need to redeploy.
Thanks @bastien -
I think its fixed! Really cool.
we’re still experiencing time drift with our application deployed with docker, it usually caused issue for us after a day or two where it went more than 10 seconds out of sync
can you help to check on the issue?
our application is in rails