forked from bentoml/BentoML
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depends on bentoml#3052 Signed-off-by: Aaron Pham <29749331+aarnphm@users.noreply.github.com>
- Loading branch information
Showing
5 changed files
with
227 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
``api_server`` | ||
^^^^^^^^^^^^^^ | ||
|
||
The following options are available for the ``api_server`` section: | ||
|
||
+-------------+-------------------------------------+-----------------+ | ||
| Option | Description | Default | | ||
+-------------+-------------------------------------+-----------------+ | ||
| ``workers`` | Number of API workers for to spawn | None (which will be determined by BentoML) | ||
+-------------+-------------------------------------+-----------------+ | ||
``timeout`` |
98 changes: 98 additions & 0 deletions
98
docs/source/guides/snippets/configuration/v2/api_server.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
api_server: | ||
workers: ~ # cpu_count() will be used when null | ||
timeout: 60 | ||
backlog: 2048 | ||
metrics: | ||
enabled: true | ||
namespace: bentoml_api_server | ||
duration: | ||
# https://github.com/prometheus/client_python/blob/f17a8361ad3ed5bc47f193ac03b00911120a8d81/prometheus_client/metrics.py#L544 | ||
buckets: | ||
[ | ||
0.005, | ||
0.01, | ||
0.025, | ||
0.05, | ||
0.075, | ||
0.1, | ||
0.25, | ||
0.5, | ||
0.75, | ||
1.0, | ||
2.5, | ||
5.0, | ||
7.5, | ||
10.0, | ||
] | ||
min: ~ | ||
max: ~ | ||
factor: ~ | ||
logging: | ||
access: | ||
enabled: true | ||
request_content_length: true | ||
request_content_type: true | ||
response_content_length: true | ||
response_content_type: true | ||
format: | ||
trace_id: 032x | ||
span_id: 016x | ||
ssl: | ||
enabled: false | ||
certfile: ~ | ||
keyfile: ~ | ||
keyfile_password: ~ | ||
ca_certs: ~ | ||
version: 17 # ssl.PROTOCOL_TLS_SERVER | ||
cert_reqs: 0 # ssl.CERT_NONE | ||
ciphers: TLSv1 # default ciphers | ||
http: | ||
host: 0.0.0.0 | ||
port: 3000 | ||
cors: | ||
enabled: false | ||
allow_origin: ~ | ||
allow_credentials: ~ | ||
allow_methods: ~ | ||
allow_headers: ~ | ||
allow_origin_regex: ~ | ||
max_age: ~ | ||
expose_headers: ~ | ||
grpc: | ||
host: 0.0.0.0 | ||
port: 3000 | ||
max_concurrent_streams: ~ | ||
maximum_concurrent_rpcs: ~ | ||
max_message_length: -1 | ||
reflection: | ||
enabled: false | ||
metrics: | ||
host: 0.0.0.0 | ||
port: 3001 | ||
tracing: | ||
exporter_type: ~ | ||
sample_rate: ~ | ||
excluded_urls: ~ | ||
timeout: ~ | ||
max_tag_value_length: ~ | ||
zipkin: | ||
endpoint: ~ | ||
jaeger: | ||
protocol: thrift | ||
collector_endpoint: ~ | ||
thrift: | ||
agent_host_name: ~ | ||
agent_port: ~ | ||
udp_split_oversized_batches: ~ | ||
grpc: | ||
insecure: ~ | ||
otlp: | ||
protocol: ~ | ||
endpoint: ~ | ||
compression: ~ | ||
http: | ||
certificate_file: ~ | ||
headers: ~ | ||
grpc: | ||
headers: ~ | ||
insecure: ~ |