Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pomelo-masterha-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pomelo-masterha-plugin

pomelo-masterha-plugin ======================

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

pomelo-masterha-plugin

master ha plugin for pomelo, it can be used in pomelo(>=0.6).

pomelo-masterha-plugin is a master ha plugin for pomelo, which uses zookeeper to make master as high availability cluster.

##Installation

npm install pomelo-masterha-plugin

##Usage

Make sure you have installed zookeeper first, then you have built the path you pass to pomelo. The configure code in app.js is as follows:

var masterhaPlugin = require('pomelo-masterha-plugin');

app.configure('production|development', function() {
  
  app.use(masterhaPlugin, {
    zookeeper: {
      server: '127.0.0.1:2181',
      path: '/pomelo/master'
    }
  });

});

You can start your application using pomelo start as before, then use pomelo-daemon to start a slave master.

FAQs

Package last updated on 14 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc