pm2 remi-robert

11
Rรฉmi ROBERT remirobert ! @remi936 https://www.youtube.com/watch? v=ixJ2O1PUrSI I prepared it very carefully, I did some practices, and I hope you guys could enjoy that, and ๏ฌnally learn something useful from my presentation.

Upload: wiredcraft

Post on 13-Apr-2017

178 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Pm2 remi-robert

Rรฉmi ROBERT

remirobert

!๐€Œ๐€ง๐€ป๐€พ๐Ž๐๐ž๐Ÿ๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐จ๐ฉ๐ช๐ซ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐ƒป๐ƒผ๐ƒฝ๐ƒพ๐ƒฟ๐„ƒ๐„„๐„…๐„†๐„ด๐„ต๐„ถ๐†‹๐†Œ๐†๐†Ž๐†๐†œ๐†๐†ž๐†Ÿ๐† ๐†ก๐†ข๐†ฃ๐†ค๐†ฅ๐†ฆ๐†ง๐†จ๐†ฉ๐†ช๐†ซ๐†ฌ๐†ญ๐†ฎ๐†ฏ๐†ฐ๐†ฑ๐†ฒ๐†ณ๐†ด๐†ต๐†ถ๐†ท๐†ธ๐†น๐†บ๐†ป๐†ผ๐†ฝ๐†พ๐†ฟ๐‡€๐‡๐‡‚๐‡ƒ๐‡„๐‡…๐‡†๐‡‡๐‡ˆ๐‡‰๐‡Š๐‡‹๐‡Œ๐‡๐‡Ž๐‡๐‡พ๐‡ฟ๐ˆ€๐ˆ๐ˆ‚๐ˆƒ๐ˆ„๐ˆ…๐ˆ†๐ˆ‡๐ˆˆ๐ˆ‰๐ˆŠ๐ˆ‹๐ˆŒ๐ˆ๐ˆŽ๐ˆ๐ˆ๐Ÿ’ป๐Ÿ“ฒ

@remi936

https://www.youtube.com/watch?v=ixJ2O1PUrSI

I prepared it very carefully, I did some practices, and I hope you guys could enjoy that, and finally learn something useful from my presentation.

Page 2: Pm2 remi-robert

production process manager

A simple way to deploy application

Page 3: Pm2 remi-robert

- Processus management Daemon / background

- Monitoring

https://www.youtube.com/watch?v=84d35TwX3fA

https://www.youtube.com/watch?v=a0zGAUn_dS4

- Intelligent reboot

- JSON Configuration

Run your application forever, and no matter what !

https://www.youtube.com/watch?v=69E5xmF8j-o

- Software scaling

What is it ?!

๐Ÿ€

Page 4: Pm2 remi-robert

- Open source tool

- 329827 downloads the last month on

- ~11 000 ๐ŸŒŸ,and 100 ๐Ÿ‘ฌ on Github

๐Ÿš€

http://github.com/pm2

Page 5: Pm2 remi-robert

How ?!

๐€Œ๐€ง๐€ป๐€พ๐Ž๐๐ž๐Ÿ๐ ๐ก๐ข๐ฃ๐ค๐ฅ๐ฆ๐ง๐จ๐ฉ๐ช๐ซ๐ฌ๐ญ๐ฎ๐ฏ๐ฐ๐ฑ๐ฒ๐ณ๐ด๐ต๐ถ๐ท๐ธ๐น๐บ๐ป๐ผ๐ฝ๐พ๐ฟ๐ƒป๐ƒผ๐ƒฝ๐ƒพ๐ƒฟ๐„ƒ๐„„๐„…๐„†๐„ด๐„ต๐„ถ๐†‹๐†Œ๐†๐†Ž๐†๐†œ๐†๐†ž๐†Ÿ๐† ๐†ก๐†ข๐†ฃ๐†ค๐†ฅ๐†ฆ๐†ง๐†จ๐†ฉ๐†ช๐†ซ๐†ฌ๐†ญ๐†ฎ๐†ฏ๐†ฐ๐†ฑ๐†ฒ๐†ณ๐†ด๐†ต๐†ถ๐†ท๐†ธ๐†น๐†บ๐†ป๐†ผ๐†ฝ๐†พ๐†ฟ๐‡€๐‡๐‡‚๐‡ƒ๐‡„๐‡…๐‡†๐‡‡๐‡ˆ๐‡‰๐‡Š๐‡‹๐‡Œ๐‡๐‡Ž๐‡๐‡พ๐‡ฟ๐ˆ€๐ˆ๐ˆ‚๐ˆƒ๐ˆ„๐ˆ…๐ˆ†๐ˆ‡๐ˆˆ๐ˆ‰๐ˆŠ๐ˆ‹๐ˆŒ๐ˆ๐ˆŽ๐ˆ๐ˆ

Executed in Background & Kept Alive

alternative to nodemon et forever

Page 6: Pm2 remi-robert

๐Ÿ“Œ

Page 7: Pm2 remi-robert

is single thread.

๐ŸŽฉ

Page 8: Pm2 remi-robert

Letโ€™s give it a shot ! How to improve the performance of your application

๐Ÿ’ก1 launch the script2 presentation interface and process3 check the auto balancing and single4 benchmarking

Page 9: Pm2 remi-robert

โœ

Benchmarking:

wrk - a HTTP benchmarking tool

- 400 HTTP connections open

- 10 seconds test

Page 10: Pm2 remi-robert

Conclusion๐ŸŽŠ

- Easy to use

- Manage your applications

- Can improve the performance

Page 11: Pm2 remi-robert

Event organised by

โ€œTechnology with Impactโ€

http://wiredcraft.com/