Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote execution #35

Open
korovkin opened this issue Apr 16, 2017 · 4 comments
Open

remote execution #35

korovkin opened this issue Apr 16, 2017 · 4 comments

Comments

@korovkin
Copy link

korovkin commented Apr 16, 2017

i am thinking about using goreman as a controller for job executions.

for example this one would run two jobs locally -

j1: curl "www.google.com" | process
j2: curl "www.yahoo.com" | process

and this one would run the job on a remote machine:

j1: curl "www.google.com" | process
j2: ssh w1 'curl "www.yahoo.com" | process'

what's the best way to achieve that?
also, is it possible to add handler for "on proc done" ?
(so i can use that event in order to clean up / copy out the result of the proc)

@gedw99
Copy link

gedw99 commented Jul 15, 2023

Use a command and control system like NATS.

then write a nats client that can control Goreman. Deploy the nats client on your servers.

you can even embed the Goreman binary I side the nats client so that it spits out Goreman at startup time to disk .

Then you can start up 100’s of servers and via another nats client on your desktop of in GitHub action control how many instance of Goreman in what .

ypu can even send the process file across using Nat object storage !

@mattn
Copy link
Owner

mattn commented Jul 16, 2023

Do you mean sequencial processes with j1 to j2 ?

@korovkin
Copy link
Author

it has been 5 years :)

i wrote this -
https://github.com/korovkin/parallel

@gedw99
Copy link

gedw99 commented Jul 17, 2023

the only reason I suggested nats is because it can run anything on remote servers.

you don’t event need to compile anything because the nats cli and a bash scriot can run Goreman prof file on other servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants