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 Just Deploy Train-Server With All Components On Kubernetes And After Some Modifications, It Works. However Apiserver And Files Are Failing Health-Checks, Do Someone Know How To Fix This?

Hi! I just deploy train-server with all components on Kubernetes and after some modifications, it works. However apiserver and files are failing health-checks, do someone know how to fix this?

[8] [WARNING] [trains.service_repo] Returned 400 for in 0ms, msg=Invalid request path /
[8] [INFO] [trains.service_repo] Returned 200 for queues.get_next_task in 11ms
  
  
Posted 4 years ago
Votes Newest

Answers 3


Hi @<1523719753099644928:profile|ImmenseMole52> ,
I assume this is the result of the K8s health check REST calls to the apiserver and fileserver. Both will not allow a simple GET request to / (in each, this has a different reason).

  • The apiserver has an endpoint you can use for that purpose, namely /debug.ping
  • The fileserver always interprets GET calls as requests for file download, so any request will fail if the provided path does not point to a file in the storage folder. One thing you can do, though, is to place some empty or tiny marker file in the fileserver 's data folder (volume is usually mounted to /opt/trains/data/fileserver ) and modify the GET request accordingly, so assuming the file is health.txt , request should be GET /health.txt . I would make sure, though, that the frequency of these calls will not be high...
  
  
Posted 4 years ago

Sorry 😞

  
  
Posted 4 years ago

Please don’t ping people here.

  
  
Posted 4 years ago
428 Views
3 Answers
4 years ago
7 months ago
Tags