Increase resilience and simplify the implementation
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia leggendo package.json e app.js per comprendere il comando di avvio attuale e la logica di clustering. Confronta la configurazione PM2 richiesta con il comportamento esistente del processo, quindi verifica che npm start avvii l'esempio come specificato e che il clustering non sia più gestito in app.js.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I have a suggestion to improve the resilience and align a bit more with industry standards.
You should not be doing clustering in your code. I adds noise and is right now preventing the script from running unclustered. There are pretty sweet tools to manage your process, bring it back up when it crashes, monitor it and finally cluster it. Tools like PM2
What I suggest is to:
- add the
pm2dependency to thepackage.json - remove the clustering logic from
app.js - change the
npm startcommand forpm2 start app.js -i maxwheremaxcan easily be changed to any number to define the number of clusters to make.
PM2 also has the advantage to be hookable for remote monitoring with almost no effort, which could be interesting for this project.
Cheers
- Lingua principale
- EJS
- Stelle
- 279
- Fork
- 247
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di aws-samples/eb-node-express-sample
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
aws-samples/eb-node-express-sample#29 · 2 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
aws-samples/eb-node-express-sample#25 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 30/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
aws-samples/eb-node-express-sample#23 · 2 commenti · 5 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
aws-samples/eb-node-express-sample#20 · 2 commenti ·
Tutte le issue di aws-samples/eb-node-express-sample
Issue simili
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Apertabug CLI custom-model
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug confirmed issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
open-webui/open-webui#30750 · 1 commento ·
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100