2017 © Pedro Peláez
 

library suricate-config

Resilent configuration system based on zookeeper (and suricate!)

image

kpacha/suricate-config

Resilent configuration system based on zookeeper (and suricate!)

  • Saturday, April 4, 2015
  • by kpacha
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

suricate-config

A simple config module with an integrated suricate service discovery system for php, (*1)

Build Status Dependency Status, (*2)

Requirements

Installation

Standalone

As a library (recomended)

Include the kpacha/suricate-config package in your compose.json with all the dependencies of your project, (*3)

"require":{
    "kpacha/suricate-config": "~0.1"
}

Git installation

Clone the repo, (*4)

$ git clone https://github.com/kpacha/suricate-config.git

Install the php dependencies, (*5)

$ cd suricate-config
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install

Composer installation

Create a project with composer, (*6)

$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar create-project kpacha/suricate-config [directory]

Remeber to set the [directory] parameter or composer will create the project in your current path., (*7)

Config files

Just set the value \\Kpacha\\Suricate\\Config\\ServiceManager to your service-manager config param and fix the url of your suricate server. Visit kpacha/config for more info., (*8)

Usage

Config module

This package is a transparent extension for kpacha/config module, (*9)

Console

The kpacha/suricate-php-sdk package comes with a simple client and several console commands bundled in a simple app. Check the project web for more info., (*10)

The kpacha/suricate-config packages extends the kpacha/suricate-php-sdk and adds the Update command from kpacha/config in order to expose a clean CLI so you could add a cron to:, (*11)

  • Send a periodic heartbeat to notify the suricate server the node is up. Check the inline help for the command $ bin/suricate-config s:h --help
  • Update the service info querying the suricate server for the services listed in the service-name area of your suricate_services.yml file with $ bin/suricate-config c:u /path/to/config/dir

Run the suricate-config script to trigger any console command., (*12)

Visit the suricate-php-sdk project for more info., (*13)

The Versions

04/04 2015

dev-master

9999999-dev

Resilent configuration system based on zookeeper (and suricate!)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kpacha

04/04 2015

v0.2.1

0.2.1.0

Resilent configuration system based on zookeeper (and suricate!)

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kpacha

04/04 2015

v0.2.0

0.2.0.0

Resilent configuration system based on zookeeper (and suricate!)

  Sources   Download

MIT

The Requires

 

by Avatar kpacha

19/10 2014

v0.1.2

0.1.2.0

Resilent configuration system based on zookeeper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kpacha

19/10 2014

v0.1.1

0.1.1.0

Resilent configuration system based on zookeeper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kpacha

19/10 2014

v0.1.0

0.1.0.0

Resilent configuration system based on zookeeper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar kpacha