GithubHelp home page GithubHelp logo

imclab / serviced Goto Github PK

View Code? Open in Web Editor NEW

This project forked from control-center/serviced

0.0 1.0 0.0 22.32 MB

Serviced is a PaaS runtime. It allows users to create, manage and scale services in a uniform way.

License: Apache License 2.0

serviced's Introduction

serviced

Serviced is a PaaS runtime. It allows users to create, manage and scale services in a uniform way.

Installation

Serviced can run on a single host or across multiple hosts. First, serviced depends on docker.

  1. Follow the instruction at http://www.docker.io/ , to install it on every host that serviced will run on. Ensure docker is running.

  2. Install a generated package from http://jenkins.zendev.org/view/Control%20Plane/job/serviced_rpm . Or follow the steps below in the dev section to a source build.

  3. Start the service. On ubuntu,

start serviced

There will be some delay the first time serviced is started before it is ready for user requests. You can track the output of serviced at /var/log/upstart/serviced.log.

  1. Browse the UI at http://localhost:8787

Usage

Serviced is a platform for running services. Serviced is composed of a master serviced process and agent processes running on each host. Each host must be registered with the master process. To register a agent process:

serviced add-host [HOSTNAME:PORT]

After the hosts are registered they must be placed in to a resource pool. This is done by first creating a pool:

serviced add-pool NAME CORE_LIMIT MEMORY_LIMIT PRIORITY

Dev Environment

Serviced is written in go. To install go, download go v1.2 from http://golang.org. Untar the distribution to /usr/local/go. If you use a different location for go, you must set GOROOT. See the http://www.golang.org for more information. Ensure that $GOROOT/bin is in you path.

Add your development user to the "docker" group.

sudo usermod -G docker -a $USER

Ubuntu 14.04 is the typical development environment. There are additional dependencies your install will need.

sudo apt-get install git mercurial libpam0g-dev make

With $GOROOT set and $GOROOT/bin in your $PATH, create a development workspace.

export GOPATH=~/mygo
export PATH="$PATH:$GOPATH/bin"
mkdir $GOPATH/{bin,pkg,src} -p
mkdir $GOPATH/src/github.com/zenoss -p
cd $GOPATH/src/github.com/zenoss 
git clone [email protected]:control-center/serviced.git
cd serviced
make install

After this, a binary should exist at $GOPATH/bin/serviced & $GOPATH/src/github.com/control-center/serviced/serviced. You can run the server with

sudo serviced -agent -master

serviced's People

Contributors

alapidas avatar anthroprose avatar burbel avatar claggierk avatar cschellenger avatar daniel-garcia avatar epowell avatar gewrites avatar gstreiff avatar iancmcc avatar jafcrocker avatar jhuie-zenoss avatar jpeacock-zenoss avatar jplouis avatar jrivera-zenoss avatar jscausey avatar kindkid avatar morr-zenoss avatar rdr4g0n avatar rzurga avatar sethcleveland avatar sockterrier avatar wgerber avatar wkharold avatar wwwtyro avatar zenossbot avatar

Watchers

 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.