satori-com / mzbench

MZ Benchmarking
BSD 3-Clause "New" or "Revised" License
271 stars 78 forks source link

Distribution of a prebuilt external worker to nodes #158

Closed wojciech-wilk closed 5 years ago

wojciech-wilk commented 5 years ago

Hi, I have a question to which I couldn't find an answer in the documentation:

I have a prebuilt tarball of an external worker. It has been copied to the tgz_packages_dir directory (in my case /home/mzbench/.local/cache/mzbench_api/packages/name.tgz). Is there a way to distribute it to the nodes?

Maybe there is another, more proper way to do this? What I want to accomplish is to build the worker once.

parsifal-47 commented 5 years ago

Hi Galhad, the idea is that system does that for you implicitly, we thought that a user don't need to control this as far as system works properly. But, there is an option for that, if you disable: custom_os_code_builds and auto_update_deployed_code it will use the tarball for any worker OS and won't try to update/rebuild it.

Once you enable it and try to run, check logs for error messages because it will contain the information on where API server is trying to look for the archive.

Please let me know if you have any follow-up questions, thanks!

wojciech-wilk commented 5 years ago

It worked, thank you very much!