Skip to content

Commit

Permalink
change envvar name to follow seldon convention
Browse files Browse the repository at this point in the history
  • Loading branch information
anggao authored and seldondev committed Dec 1, 2020
1 parent edf289a commit 3c943be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/python/python_server.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ Python Server can be configured using environmental variables or command line fl
| `--threads` | `GUNICORN_THREADS` | `10` | Number of threads to run per Gunicorn worker. |
| `--max-requests` | `GUNICORN_MAX_REQUESTS` | `0` | Maximum number of requests gunicorn worker will process before restarting. |
| `--max-requests-jitter` | `GUNICORN_MAX_REQUESTS_JITTER` | `0` | Maximum random jitter to add to max-requests. |
| `--access-log` | `GUNICORN_ACCESS_LOG` | `false` | Enable gunicorn access log. |
| `--pidfile` | N/A | None | A file path to use for the Gunicorn PID file. |
| `--single-threaded` | `FLASK_SINGLE_THREADED` | `0` | Force the Flask app to run single-threaded. Also applies to Gunicorn. Can be `0` or `1`. |
| N/A | `FILTER_METRICS_ACCESS_LOGS` | `not debug` | Filter out logs related to Prometheus accessing the metrics port. By default enabled in production and disabled in debug mode. |
| N/A | `PREDICTIVE_UNIT_METRICS_ENDPOINT` | `/metrics` | Endpoint name for Prometheus metrics. In k8s deployment default is `/prometheus`. |
| N/A | `PAYLOAD_PASSTHROUGH` | `false` | Skip decoding of payloads. |
| `--access-log` | `SELDON_GUNICORN_ACCESS_LOG` | `false` | Enable gunicorn access log. |
2 changes: 1 addition & 1 deletion python/seldon_core/microservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
DEFAULT_METRICS_PORT = 6000

DEBUG_ENV = "SELDON_DEBUG"
GUNICORN_ACCESS_LOG_ENV = "SELDON_GUNICORN_ACCESS_LOG"
GUNICORN_ACCESS_LOG_ENV = "GUNICORN_ACCESS_LOG"


def start_servers(
Expand Down

0 comments on commit 3c943be

Please sign in to comment.