Skip to content

Demonstration of autoscaling workers in a producer-consumer scenario on Cloud Foundry....in Go!

Notifications You must be signed in to change notification settings

mstine/go-cf-autoscaler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-cf-autoscaler

Demonstration of autoscaling workers in a producer-consumer scenario on Cloud Foundry....in Go!

baby-gopher

This project is major WIP! I am attempting to port my Java/Spring cf-autoscaler to Go as a learning exercise.

Stay tuned for more goodness.

Current State

  • Looks for an AMQP URI in environment variable VCAP_SERVICES:
{
    "cloudamqp-n/a": [
        {
            "credentials": {
                "uri": "amqp://user:********@green-skunk.rmq.cloudamqp.com/xweijkex"
            }, 
            "label": "cloudamqp-n/a", 
            "name": "cloudamqp-autoscale", 
            "plan": "bunny", 
            "tags": [
                "amqp", 
                "rabbitmq"
            ]
        }
    ]
}
  • Get it: go get github.com/mstine/go-cf-autoscaler
  • Build it: go install
  • Run the producer: go-cf-autoscaler p
  • Run the worker: go-cf-autoscaler w
  • Get help: go-cf-autoscaler help

About

Demonstration of autoscaling workers in a producer-consumer scenario on Cloud Foundry....in Go!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages