Code Monkey home page Code Monkey logo

servicemgr's Introduction

ServiceMgr

By NodeJs and zookeeper to manage services

zookeeper怎么做到服务注册

  1. 指定一个节点来作为所有服务地址的根节点(类似命名空间),该节点应该为一个持久节点。
  2. 有n个应用,每个应用下有n台机器,所以应用节点也拥有子节点,也应该是持久节点。
  3. 每台机器在启动应用服务的时候要向zk注册一个地址,在服务下线的时候要删除zk中的地址,所以使用临时节点特点正好符合这个行为,同时可以使用顺序节点自动帮我们管理节点名称。

servicemgr's People

Contributors

xiong-ang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.