SlideShare a Scribd company logo
Multiprocessing and
                runs continuously

                         2011-11-19
                  kumatch / Yosuke Kumakura




11   11   19
• Yosuke Kumakura
               • @kumatch
               • Feedtailor inc.

11   11   19
Agenda


               • Multiprocessing
               • Continue to run a script


11   11   19
Today’s modules


               • Cluster (for Node 0.6)
               • forever


11   11   19
Cluster
               • Includes version 0.5.10
                • committed on Oct. 12, 2011
                • adds CLI option first.
               • Shift to module (Oct. 27, 2011)
                • removed CLI option.
               • Bump v 0.6.0 (Nov. 4, 2011)
11   11   19
Worker
                         process
               Network
                ports
                         Worker
                         process

                   Master process

11   11   19
Cluster APIs

               • fork()
               • isMaster
               • isWorker
               • “death” event for worker die

11   11   19
Cluster usage

               • cluster.isMaster
                  • cluster.fork()
               • cluster.isWorker
                  • ex. http.Server()

11   11   19
Cluster usage


               • Cluster worker is Child Process
                • using child_process.fork()
                • Built-in messaging channel

11   11   19
Cluster for Node 0.4


               • http://learnboost.github.com/cluster/


11   11   19
forever

               • https://github.com/nodejitsu/forever
               • Run a script as a daemon
               • CLI tool (and module instance)

11   11   19
$ [sudo] npm install -g
                      forever

               $ forever start app.js

11   11   19
forever daemon actions

               • start
               • stop
               • restart
               • list
               • and more...
11   11   19
Node 0.6 + forever 0.7.2
                  = unstoppable !!!

                • start is available
                • list, stop and etc. don’t work

11   11   19

More Related Content

ODP
Beyond Xen: A look into the Xen Cloud Platform
ODP
Openvz booth
PPT
OpenNebula Administrator View
PDF
XS Boston 2008 Quantitative
PPTX
PDF
CentOS at Facebook
PDF
Alternatives to layer-based image distribution: using CERN filesystem for images
PPTX
OSv: probably the best OS for cloud workloads you've never hear of
Beyond Xen: A look into the Xen Cloud Platform
Openvz booth
OpenNebula Administrator View
XS Boston 2008 Quantitative
CentOS at Facebook
Alternatives to layer-based image distribution: using CERN filesystem for images
OSv: probably the best OS for cloud workloads you've never hear of

What's hot (19)

KEY
Ruby Midwest 2010 jRuby by Charles Nutter
PPTX
Source version control using subversion
PDF
PDF
OpenNebulaconf2017US: Rapid scaling of research computing to over 70,000 cor...
PDF
Puppet Camp Chicago 2014: Running Multiple Puppet Masters (Beginner)
PDF
Charm City Linux - Jan 2014 - Web Dev Made Easy - Shell Revolution
PPTX
First steps with kubernetes
PDF
What's new with CentOS at Facebook
PPTX
Phoenix: Sent 200 OK in 3 μs
PDF
How to stuff a 900 pound gorilla into a smartphone
PDF
CoreOS Overview
PPTX
Microsoft Really Loves Linux – a Virtual Love Story
PDF
Masterless puppet
PPTX
Docker introduction
PDF
Provisioning Rails Servers with Ansible
PPTX
Vagrant for ci
PDF
Docker Introduction
ODP
Some dope on Zope (Jan 2002, Bangalore LUG)
PPTX
Docker lightning
Ruby Midwest 2010 jRuby by Charles Nutter
Source version control using subversion
OpenNebulaconf2017US: Rapid scaling of research computing to over 70,000 cor...
Puppet Camp Chicago 2014: Running Multiple Puppet Masters (Beginner)
Charm City Linux - Jan 2014 - Web Dev Made Easy - Shell Revolution
First steps with kubernetes
What's new with CentOS at Facebook
Phoenix: Sent 200 OK in 3 μs
How to stuff a 900 pound gorilla into a smartphone
CoreOS Overview
Microsoft Really Loves Linux – a Virtual Love Story
Masterless puppet
Docker introduction
Provisioning Rails Servers with Ansible
Vagrant for ci
Docker Introduction
Some dope on Zope (Jan 2002, Bangalore LUG)
Docker lightning
Ad

Viewers also liked (17)

PDF
CNIT 129S: Ch 3: Web Application Technologies
PDF
Telecommunication network
PPT
Chapter 6: Human Resources Processes with ERP
PPT
Erp (Enterprise Resource Planning)
PDF
Design & Develop Batch Applications in Java/JEE
PPTX
Multitasking group ppt
PPTX
Erp package selection1
PPT
Circuit switch telecommunication network
PPTX
Multi tasking ppt
PDF
Java EE 7 Batch processing in the Real World
PPT
Flowchart
PPT
Chap3 flow charts
PPTX
System development life cycle (sdlc)
PPTX
System Development Life Cycle (SDLC)
PPT
ERP - Implementation is The Challenge
PPTX
Introduction to flowchart
PPT
ERP Implementation Life Cycle
CNIT 129S: Ch 3: Web Application Technologies
Telecommunication network
Chapter 6: Human Resources Processes with ERP
Erp (Enterprise Resource Planning)
Design & Develop Batch Applications in Java/JEE
Multitasking group ppt
Erp package selection1
Circuit switch telecommunication network
Multi tasking ppt
Java EE 7 Batch processing in the Real World
Flowchart
Chap3 flow charts
System development life cycle (sdlc)
System Development Life Cycle (SDLC)
ERP - Implementation is The Challenge
Introduction to flowchart
ERP Implementation Life Cycle
Ad

Similar to [Node] Multiprocessing and runs continuously (20)

KEY
Node.js 0.8 features
PDF
Advanced task management with Celery
PDF
Node.js in production
PDF
淺談Ruby process fork應用
PDF
High Availability Server Apps
PDF
Towards 100% uptime with node
PDF
Planning for the Horizontal: Scaling Node.js Applications
PPTX
Building node.js applications on windows azure
PDF
Raemon
PDF
Caridy patino - node-js
PDF
Conquistando el Servidor con Node.JS
PDF
Deploying on the cutting edge
PDF
Better Operations into the Cloud
PPTX
Scientific Computing - Hardware
PDF
Docker New York City: From GitOps to a scalable CI/CD Pattern for Kubernetes
PPTX
PDF
Errors and handling them. YOW nights Sydney 2011
PDF
Error Handling Done Differently
KEY
Erlang Workshop at Dyncon 2011
PDF
Holistic Aggregate Resource Environment
Node.js 0.8 features
Advanced task management with Celery
Node.js in production
淺談Ruby process fork應用
High Availability Server Apps
Towards 100% uptime with node
Planning for the Horizontal: Scaling Node.js Applications
Building node.js applications on windows azure
Raemon
Caridy patino - node-js
Conquistando el Servidor con Node.JS
Deploying on the cutting edge
Better Operations into the Cloud
Scientific Computing - Hardware
Docker New York City: From GitOps to a scalable CI/CD Pattern for Kubernetes
Errors and handling them. YOW nights Sydney 2011
Error Handling Done Differently
Erlang Workshop at Dyncon 2011
Holistic Aggregate Resource Environment

More from kumatch kumatch (7)

PDF
AngularJSからReactに移ったケースの話
PDF
Node platforms
PDF
Nodeを稼働させる
PDF
Node.js patterns of module export / require
PDF
Node.js Error & Debug Leveling
PDF
Learning a node stream
PDF
PHPカンファレンス関西2011/スマートフォン時代のWebシステム
AngularJSからReactに移ったケースの話
Node platforms
Nodeを稼働させる
Node.js patterns of module export / require
Node.js Error & Debug Leveling
Learning a node stream
PHPカンファレンス関西2011/スマートフォン時代のWebシステム

Recently uploaded (20)

PDF
cuic standard and advanced reporting.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Big Data Technologies - Introduction.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
Machine learning based COVID-19 study performance prediction
Mobile App Security Testing_ A Comprehensive Guide.pdf
Chapter 3 Spatial Domain Image Processing.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
MIND Revenue Release Quarter 2 2025 Press Release
“AI and Expert System Decision Support & Business Intelligence Systems”
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Big Data Technologies - Introduction.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
The AUB Centre for AI in Media Proposal.docx
Diabetes mellitus diagnosis method based random forest with bat algorithm

[Node] Multiprocessing and runs continuously

  • 1. Multiprocessing and runs continuously 2011-11-19 kumatch / Yosuke Kumakura 11 11 19
  • 2. • Yosuke Kumakura • @kumatch • Feedtailor inc. 11 11 19
  • 3. Agenda • Multiprocessing • Continue to run a script 11 11 19
  • 4. Today’s modules • Cluster (for Node 0.6) • forever 11 11 19
  • 5. Cluster • Includes version 0.5.10 • committed on Oct. 12, 2011 • adds CLI option first. • Shift to module (Oct. 27, 2011) • removed CLI option. • Bump v 0.6.0 (Nov. 4, 2011) 11 11 19
  • 6. Worker process Network ports Worker process Master process 11 11 19
  • 7. Cluster APIs • fork() • isMaster • isWorker • “death” event for worker die 11 11 19
  • 8. Cluster usage • cluster.isMaster • cluster.fork() • cluster.isWorker • ex. http.Server() 11 11 19
  • 9. Cluster usage • Cluster worker is Child Process • using child_process.fork() • Built-in messaging channel 11 11 19
  • 10. Cluster for Node 0.4 • http://learnboost.github.com/cluster/ 11 11 19
  • 11. forever • https://github.com/nodejitsu/forever • Run a script as a daemon • CLI tool (and module instance) 11 11 19
  • 12. $ [sudo] npm install -g forever $ forever start app.js 11 11 19
  • 13. forever daemon actions • start • stop • restart • list • and more... 11 11 19
  • 14. Node 0.6 + forever 0.7.2 = unstoppable !!! • start is available • list, stop and etc. don’t work 11 11 19