eBay / parallec

Fast Parallel Async HTTP/SSH/TCP/UDP/Ping Client Java Library. Aggregate 100,000 APIs & send anywhere in 20 lines of code. Ping/HTTP Calls 8000 servers in 12 seconds. (Akka) www.parallec.io
Apache License 2.0
805 stars 173 forks source link

Unix network commands executing. #62

Closed maistrovyi closed 7 years ago

maistrovyi commented 7 years ago

Hi, at the first - thank you for this cool project! I have a question, could I execute host or nslookup commands from prepareTcp/prepareUdp methods? If yes - please, reproduce it.

jeffpeiyt commented 7 years ago

@maystrovyy thank you for the interests in Parallec!

You can run those commands via the parallel ssh option and run any scripts/commands there.

thanks,

maistrovyi commented 7 years ago

@jeffpeiyt thank you, I'll try it.

maistrovyi commented 7 years ago

Cool, I got it right! But one question: Timedout after 15 SEC (no response but no exception catched). Details more info I was trying to 'host' only 100 domains...

jeffpeiyt commented 7 years ago

@maystrovyy . Glad you make some progress :-) . Sometimes it means the destination host can get stuck (where the socket is connected by no response back etc) can you first try a quick command such as ls with a single target host and make sure the machine is ssh able ?

Then try with more target hosts; the timeout can be changed if you try to run a script that takes very long time to return. http://www.parallec.io/docs/configurations/#timeout

jeffpeiyt commented 7 years ago

Closing it for now as there is no more activity. Feel free to reopen it.