Похожие чаты

For deploying nodejs app with zero downtime we use PM2

is that right? Now lets say I have node application with 4 API endpoint now I want to add new endpoints to existing application. So do that we can do pm2 reload app-name instead of pm2 restart is that correct? How can I make sure my application is updated with new endpoints with zero down time?

10 ответов

6 просмотров

did you test it

zero downtime requires replicas running in cluster mode

https://docs.cloudfoundry.org/devguide/deploy-apps/blue-green.html

Adi- Автор вопроса
drunktimelord
did you test it

Node app version1 included 4 APIs initially now my new version of app has 2 additional endpoints how to make sure this gets deployed without any downtime? For this pm2 reload works

Adi- Автор вопроса
drunktimelord
test it locally

But for adding new code changes we need to restart the server right? Thats why pm2 comes in to picture

Adi- Автор вопроса
Adi
This was original question

https://stackoverflow.com/help/how-to-ask

Adi
🤦

no really, either frame your question properly or read the docs on the specific topic. we wont be able to help with vague questions

Похожие вопросы

Обсуждают сегодня

@LGCYMan @JustinKKW Q/A List 1. this part confuses me on #8: "From there, a bridge between erc20 LGXY and erc20 LGXY will be out once that swap is closed." does this mean ...
Sig | LGCY | BattleVerse L1 | BitWin
1
Did @Beeker really get banned? That's ridiculous. He's one of the few left here with half a brain and you might not always like his narrative @dgb_ycagel , but he often keeps ...
Leroy Gerrits
1
Anyone here suffers from unexplained aural migraines, who would be up for talking for a bit? Doesn't *have* to be aural, but I am not asking about headaches, I mean actual mi...
Martin Rys
55
async login(req: Request, res: Response, next: NextFunction): Promise<void> { try { const { errors, input } = await RequestValidator(LoginRequest, req.body...
. .
1
Я тут за тем, чтобы задать вопрос, так как не знаю ассемблер, учу с/с++. Короче, насколько дорога операция перехода в функцию при ее вызове? Дело в том, что в с++ есть макросы...
Максим Рябцев
12
А какие чаты вообще в ходу? Auto aim? И что еше
do you think you're better off alone? А
13
A couple thoughts from a random internet stranger: 1. If you want this project to gain traction you cannot keep being negative. If I just came here after finding out about Kd...
Eric Wild
46
hello friends. Do you know how can I learn getx? I have a software project that I should deliver it up to 5 weeks later and I need to learn firebase too. I will be thankfull
AmirHossein Razavi
15
Привет, нужен совет старших товарищей. Есть глобальная переменная var DefaultDataFolder:string; инициализируем DefaultDataFolder:='a:\_OUT\'; есть примитивная процедур...
Max Otto
14
We heading to 1.1$ 🤔?
CryptoBo$$
35
Карта сайта