タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

node.jsとclusterに関するgologo13のブックマーク (2)

  • 【Node.js】foreverより高機能なpm2でデーモン化

    ちょっと前からですが、Node.jsで運用しているサービスのデーモン化ツールを node-foreverから、node-pm2へ変更いたしました。 foreverと比較して高機能なpm2をお伝えいたします。 クラスタリング foreverコマンドは、基的にプロセスが生きている事を管理するのみでした。 pm2では、それはもちろんの事、使っているCPUに合わせてクラスタリングする機能が付いています。 Node.js v0.6で追加されたクラスタリング機能はソケットをネットワーク化されたNode.jsのアプリケーション間でシェアする事が出来ました。 pm2では基機能として、追加コードなしにそれらを実装しています。pm2体がマスタープロセスの役割をし、アプリケーションコードをクラスタリング化された子プロセスとして扱います。 すべてのCPUを使ってクラスタリングするには、 pm2 start

    【Node.js】foreverより高機能なpm2でデーモン化
  • StrongLoop API Documentation

    Strong Store Cluster Strong Store for Cluster provides a key/value collection that can be accesses by all processes in a node cluster. Example // get the collection and give it a name var collection = require('strong-store-cluster').collection('test'); // don't let keys expire, ever - the number represents seconds collection.configure({ expireKeys: 0 }); collection.set('ThisIsMyKey', { a: 0, b: 'H

  • 1