Skip to content

Mini cluster to execute parallel jobs using go lang.

License

Notifications You must be signed in to change notification settings

tommyfgj/mini-go-cluster

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-go-cluster

test Mini cluster to execute parallel jobs using go lang. Jobs can be either:

  1. HTTP/ API requests
  2. Terminal commands

Currently supports HTTP GET requests only.

Output

An output file containing jobs results.

Usage

Execute go cluster by running the command:
go run src/bootstrap.go (input file path) (output file path) (error file path) (log file path)

Example:
go run src/bootstrap.go /www/input/input.txt /www/output/output.txt /www/output/output_error.txt /www/logs/

Example input file:

URL|http://www.google.com|GET|?gws_rd=cr,ssl&ei=KhM9VdKAIMvnuQTv3oDwAg
URL|http://www.yahoo.com|GET|/wajrcs
URL|http://www.facebook.com|GET|/waqar.alamgir

Example output file:

http://www.google.com|GET|?gws_rd=cr,ssl&ei=KhM9VdKAIMvnuQTv3oDwAg|{"glossary":{"title":"example glossary"}}

Screenshot

Cli output

Configuration

You can modify the following config for number of jobs to execute parallel
var MAX_CONCURRENT_CONNECTION = 10

Future Development

As mentioned currently it supports HTTP GET requests. Later it is going to support POST, PUT and DELETE requests. Terminal commands will also be supported by system.

Developer Resources

Check out the URLs bellow to find out how its done:
Go Lang Documentation and instalation

Interested in contributing?

If you wanna add more features and user options then just fork this repo from the link bellow: https://github.com/waqar-alamgir/mini-go-cluster/fork

Credits

mini-go-cluster by Waqar Alamgir
Web
Twitter

About

Mini cluster to execute parallel jobs using go lang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%