Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Am New Here. I Was Wondering Where Can I Configure Which Machines Trains (Or Trains-Agent?) Use For Queueing Tasks, And How Do I Create Such Queues. Thanks.

Hi, I am new here.
I was wondering where can I configure which machines trains (or trains-agent?) use for queueing tasks, and how do I create such queues. Thanks.

  
  
Posted 3 years ago
Votes Newest

Answers 20


Found it in the init docs 🙂

  
  
Posted 3 years ago

Hey, I've gotten this message:
TRAINS Task: overwriting (reusing) task id=24ac52461b2d4cfa9e672d9cd817962c
And I'm not sure why it's reusing the task instead of creating a new task id, the configuration was different although the same python file run. Have you got any idea?

  
  
Posted 3 years ago

We are here if you need further help 🙂

  
  
Posted 3 years ago

Will do 🙂

  
  
Posted 3 years ago

Check the examples on the github page, I think this is what you are looking for 🙂
https://github.com/allegroai/trains-agent#running-the-trains-agent

  
  
Posted 3 years ago

Furthermore, let's say I have 6 GPUs on a machine, and I'd like trains to treat this machine as 2 workers (gpus 0-2, 3-5), is there a way to do that?

  
  
Posted 3 years ago

Something else, If I want to designate only some of the GPUs of a worker, how can I do that?

  
  
Posted 3 years ago

that does make more sense 🙂

  
  
Posted 3 years ago

yes

  
  
Posted 3 years ago

But same server ?

  
  
Posted 3 years ago

Actually two machines with shared filesystem

  
  
Posted 3 years ago

I've sorted this out. All I needed was to add them to a queue so they would be visible.

  
  
Posted 3 years ago

SmarmySeaurchin8 just so that I don't miss anything.
One machine, two trains-agents each one connected to a different trains-server, correct ?
from the trains-agent --help
trains-agent --config-file /home/user/my_trains_server1.conf daemon trains-agent --config-file /home/user/my_trains_server2.conf daemon

  
  
Posted 3 years ago

Hmm, I've changed my trains-server config location to use a config in a different location, and successfully set up in the second server the trains-agent. But I don't see any new worker created, why is that?

  
  
Posted 3 years ago

Great! Thanks.

  
  
Posted 3 years ago

Hi SmarmySeaurchin8 , you can point to any configuration file by setting the environment variable:
TRAINS_CONFIG_FILE=/home/user/my_trains.conf

  
  
Posted 3 years ago

Since my servers have a shared file system, the init process tells me that the configuration file already exists. Can I tell it to place it in another location? GrumpyPenguin23

  
  
Posted 3 years ago

Thanks

  
  
Posted 3 years ago

Welcome! The machines are the ones you install and run the trains-agent daemon on, and creating the queues can be done via the trains-agent cli or the webapp UI

  
  
Posted 3 years ago
668 Views
20 Answers
3 years ago
one year ago
Tags