serve icon indicating copy to clipboard operation
serve copied to clipboard

enable_envvars_config appears to do nothing

Open fbbradheintz opened this issue 6 years ago • 5 comments

AFAICT, the enable_envvars_config config file setting does nothing. The LOG_LOCATION, METRICS_LOCATION, and TS_CONFIG_FILE env vars are all picked up by TorchServe on startup. I tried this three ways in my config.properties:

  • No enable_envvars_config entry
  • enable_envvars_config=true
  • enable_envvars_config=false

In all three trials, the env var behavior was as it should be for the case the docs describe for enable_envvars_config=true.

fbbradheintz avatar Apr 16 '20 00:04 fbbradheintz

I'm trying to find the same. Where are the log and metrics files generated and stored when i start the server ?

mohammedayub44 avatar May 08 '20 02:05 mohammedayub44

I'm trying to find the same. Where are the log and metrics files generated and stored when i start the server ?

@mohammedayub44 log and metrics files are generated in logs folder, located at path from where torchserve was started. logs and metrics location can be configured by env variable, LOG_LOCATION and METRICS_LOCATION.

These can also be configured through custom log4j.properties file, please refer logging.md for more details.

shivamshriwas avatar May 08 '20 08:05 shivamshriwas

@fbbradheintz when enable_envvars_config property is set true , all the properties mentioned in config.properties only can be controlled using this flag.

Note: for setting these as env this format should be used "TS_" eg: inference_address -> TS_INFERENCE_ADDRESS

we will be updating documentation for the same.

shivamshriwas avatar May 08 '20 10:05 shivamshriwas

@shivamshriwas Thanks will take a look.

mohammedayub44 avatar May 08 '20 10:05 mohammedayub44

Related PR has been merged hence closing it

codinnvrends avatar Jun 10 '20 04:06 codinnvrends