AudioMuse-AI icon indicating copy to clipboard operation
AudioMuse-AI copied to clipboard

[FEEDBACK] Add audiomuse-ai-worker instances directly in compose file

Open bakker opened this issue 1 year ago • 1 comments

1. What were you trying to do? Trying it out for integration into my Lyrion based environment, I saw the recommendation to create multiple audiomuse-ai-worker instances directly from command line using a specific docker compose command. In my environment I'm running on docker-compose.yml for all services on that particular server, so that isn't the most optimal way of running it.

2. What did you like? Integrating your compose file into mine "just worked" immediately, no tinkering needed beyond setting the right path for the volumes. Out of the box of course only 1 audiomuse-ai-worker, but everything ran, Flask application was accessible and analysis could be started

3. What was confusing or could be improved? I commented out the container_name parameter in the audiomuse-ai-worker service, but added:

deploy:
      replicas: 2  

This automatically spawns two audiomuse-ai-worker when just starting up

bakker avatar Sep 26 '25 19:09 bakker

Hi, thanks for sharing the possibility to add "replicas: 2" also in a docker-compose file. I was thinking that this was possible only on kubernetes deployment. Anyway it is not needed anymore in the recent version: 1 worker is enough.

The comment was an old one when the worker was able to run only one process at time. Now a single worker can run both the Main task (for example in the analysis the one that retrive and enqueue all the album to analyze) and the subtask (for example in the analysis the one that actually run the analysis).

So that I just removed the comment.

If in your local enviroment you run AudioMuse-AI with 2 worker no problem, you can keep running it in this way.

NeptuneHub avatar Sep 30 '25 16:09 NeptuneHub