beansdump

command module
v0.0.0-...-3a46d30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2014 License: Apache-2.0 Imports: 12 Imported by: 0

README

Beansdump

Build Status

Description: Beansdump is a data collecting tool which reserving jobs from beanstalkd and dumping them into AWS S3 in bulk. Beansdump WILL LOSE DATA (usually dozens of jobs) since it has two levels of memory cache built-in when restart.

It's currently in developing stage, use it at your own risk.

Install and Compile

No addition steps to compile beansdump, all things you need to do are just a go build

  1. git clone https://github.com/fangli/beansdump
  2. go build beansdump.go

Usage

-s="localhost:11300": IP:Port point to beanstalkd server (default to localhost:11300)
-t="default": Message tube for metrics (default to 'default')

-u="": The S3 accesskey, required
-p="": The S3 secret, required
-r="https://mybucket.s3.amazonaws.com/test/": Point to the folder URL of target S3 bucket

-f="/mnt/": The tmp dir to cache the S3 file, default to /mnt/
-i=300: The interval to cache the jobs and send to S3 in bulk, default to 300(s)

Example:

./beansdump -f /tmp/ -i 30 -u "MY_S3_ACCESS_KEY" -p "MY_S3_SECRET" -r "https://mybucket.s3.amazonaws.com/test/"

Contributing changes

  • Initial release

License

See LICENCE.txt

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL