I need to know if my application is running on multiple instances

We are using NestJS CRON, but we started to receive two emails, it happened back on heroku because app was running on multiple dynos. I wanted to confirm is this the same case on railway?
23 Replies
Finn
Finnβ€’2y ago
When deploying there is a overlap where you will have two up at one time Leme find the docs
Finn
Finnβ€’2y ago
There's this. Just. Need to find the section about the deployment overlapp cus you can configure it via env vars
Finn
Finnβ€’2y ago
Once the build succeeds, Railway will attempt to deploy your image and the Deployment's status becomes Deploying. If a healthcheck is configured, Railway will wait for it to succeed before proceeding to the next step
Once the build succeeds, Railway will attempt to deploy your image and the Deployment's status becomes Deploying. If a healthcheck is configured, Railway will wait for it to succeed before proceeding to the next step
Hmmm I asume the overlap is still there even if your not using health check. Cannot find the docs related to the overlap sorry 😦 Somone else might be able to.
Muhammad Farhan Tahir
Yeah I saw two deployments active I removed one now but my question now is shouldn't it automatically remove the old one.
Finn
Finnβ€’2y ago
It should yeah
Muhammad Farhan Tahir
Can any of the technical team member check and see what caused this?
Faraz
Farazβ€’2y ago
This isn't necessarily true. @Muhammad Farhan Tahir just fyi, there's a dedicated channel for you as you're on the teams plan. #chainlist
Muhammad Farhan Tahir
I will use that channel from now own.
Faraz
Farazβ€’2y ago
You don't have to but I was just making sure you knew about it! πŸ˜„
Muhammad Farhan Tahir
Thanks, I actually wasn't aware of it. But as I have opened up this post, let's continue here for this one.
Faraz
Farazβ€’2y ago
As for the issue at hand, did this happen when you had two active deployments? And could you share the project ID with me?
Muhammad Farhan Tahir
Shall I share the project ID here ? and no I am not exactly sure if it happened during two active deployments, I am trying to reproduce but I remember it happened before on heroku and we had two dynos running which was causing it.
Faraz
Farazβ€’2y ago
Yeah, you can share the project ID. Permissions are scoped to the user. So no one will be able to do anything with just the ID.
Muhammad Farhan Tahir
4cf41ad7-2e62-4a26-80c0-0693d49c57d4
Faraz
Farazβ€’2y ago
And was this in the production environment or staging?
Muhammad Farhan Tahir
staging We haven't made our prod active yet as we are further exploring railway though liking every bit of it. By the way, I just reproduced it and no its not tied to multiple active deployments. as right on API side I have one active deployment.
Faraz
Farazβ€’2y ago
You have an active deployment in the production environment from 5 days ago. Any chance that's causing the issue?
Muhammad Farhan Tahir
No as we use redis for queuing and staging has separate instance.
Faraz
Farazβ€’2y ago
Right. Let me raise this internally and see if someone can look into why it may have happened.
Muhammad Farhan Tahir
I verified env variables as well. Thanks
angelo
angeloβ€’2y ago
It might have taken long time for us to reconcile the active deploys, I am seeing only two deploys live. Are you still observing this behavior?
Muhammad Farhan Tahir
Yes. Anything to share on this one?
angelo
angeloβ€’2y ago
Forgive me! It was a hectic day with the service degredations, I am going to investigate this further.