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
I Keep Getting Errors When Trying To Compare A Lot Of Experiments At The Same Time (>10). What'S Evern Worse Is That Trains Start Working Much Slower In General After These Attempts, The Only Way To Fix It Is To Restart The Whole Thing. Would Getting Bett

I keep getting errors when trying to compare a lot of experiments at the same time (>10). what's evern worse is that trains start working much slower in general after these attempts, the only way to fix it is to restart the whole thing. would getting better EC2 instance help? any other ideas?

  
  
Posted 4 years ago
Votes Newest

Answers 30


some of the POST requests "tasks.get_all_ex" fail as far as I can see

  
  
Posted 4 years ago

Can you share all the error info that you get in the network tab?

  
  
Posted 4 years ago

Well, server seems OK, disk size might be a little on the low-end (just to be safe)

  
  
Posted 4 years ago

0.16.1

  
  
Posted 4 years ago

And the trains-elasticsearch log?

  
  
Posted 4 years ago

btw, there are "[2020-09-02 15:15:40,331] [9] [WARNING] [urllib3.connectionpool] Connection pool is full, discarding connection: elasticsearch" in the apiserver logs again

  
  
Posted 4 years ago

nope, the only changes to config that we made are adding web-auth and non-responsive tasks watchdog

just in case, this warning disappeared after I https://stackoverflow.com/questions/49638699/docker-compose-restart-connection-pool-full

  
  
Posted 4 years ago

any suggestions on how to fix it?

  
  
Posted 4 years ago

running
docker network prunebefore starting the containers kind of helped. I still see an error when I'm comparing > 20 experiments, but at least trains works okay after that, and there are no connection pool limit errors in the logs

  
  
Posted 4 years ago

What is your server machine profile/spec?

  
  
Posted 4 years ago

tail of the api server log

  
  
Posted 4 years ago

This shouldn't be an issue, since the server should reuse connections, but perhaps the max connections limit on your server os relatively low?

  
  
Posted 4 years ago

thanks!

  
  
Posted 4 years ago

Yeah, connections keep getting dropped since the pool is full

  
  
Posted 4 years ago

Do you see any error in the browser network tab?

  
  
Posted 4 years ago

btw, are there any examples of exporting metrics using Python client? I could only find last_metrics attribute of the task

  
  
Posted 4 years ago

network logs

  
  
Posted 4 years ago

I'll think about it and get back to you - it might be interesting to understand what causes this when comparing >20 experiments...

  
  
Posted 4 years ago

okay, give me a sec

  
  
Posted 4 years ago

Also, what's the Trains Server version?

  
  
Posted 4 years ago

Hi DilapidatedDucks58 , I am trying to reproduce the "Connection is full warning". Do you override any apiserver environment variables is docker compose? If yes then can you share your version of docker-compose? Do you provide a configuration file for gunicorn? Can you please share it?

  
  
Posted 4 years ago

Can you please check the max connections setting in your OS?

  
  
Posted 4 years ago

we do log a lot of the different metrics, maybe this can be part of the problem

  
  
Posted 4 years ago

OK, on first glance ES doesn't seem to have any issue

  
  
Posted 4 years ago

m5.xlarge EC2 instance (4 vCPUs, 16 GB RAM), 100GB disk

  
  
Posted 4 years ago

Error
Failed to get Scalar Charts

  
  
Posted 4 years ago

I'll try to check it out and get back to you, seems very strange

  
  
Posted 4 years ago

Great! What error do you still see in UI when comparing more than 20 experiments? At the time of error do you see any error response from the apiserver (in the browser network tab)? When the call to compare of 20+ task metrics succeed how much time does it usually takes in your environment?

  
  
Posted 4 years ago

As always, the server log ( trains-apiserver for start) and more details from the browser's developer tools Network section would be appreciated 🙂

  
  
Posted 4 years ago

Is it possible to get a longer log file for the apiserver? From what I see, there's some kind of a connection pool issue

  
  
Posted 4 years ago
1K Views
30 Answers
4 years ago
one year ago
Tags