proxy.py/fluentd.conf

22 lines
770 B
Plaintext
Raw Normal View History

Use selectors.DefaultSelector instead of select.select (#106) * Use selectors.DefaultSelector instead of select.select * Unregister to avoid endless loop * Cleanup event register/unregiter * Cleanup event registration * Add google-fluentd.conf. Use if running proxy.py on Google Cloud. * Send server error from proxy if for whatever reason we fail to process the request (or should it be BadRequest based upon situation?) * Fix tests for selectors * Only include proxy.py and tests.py in coverage report * Only include proxy.py for coverage * remove redundant integration test, will rewrite using mocks * Proper unregister of events * Change multi core accept model to avoid client TIME_WAIT. Fixes #97 * Catch BlockingIOError * Remove redundant comments * Simplify with AcceptorPool * Pass family to acceptor processes * Remove plugin.access_log for core plugins * Return 501 not implemented for web socket upgrade requests to inbuilt HTTP server * Add support for websocket upgrade * Websocket frame parser * Enable websocket based routing * Add WebsocketClient * Websocket * mypy fixes * Sync GitHub workflow lint and makefile lint commands. For now comment out tests which are broken :( New tests coming next. * Start fixing tests for new code * Fix formatting * Fix main tests * Add worker tests * GitHub only ran windows tests, may be require unique names * Use 3.6/3.7 dev versions for GitHub actions * Add AcceptorPool test * Add x64 and x86 matrix for actions tests * Dont use dev versions since they dont exists for x86 * Ha no x86 support itself * Add backer link * Remove support badge for 3.5 as it doesnt support typing * Update read me with changed architecture notes * Update read me with changed architecture notes * Add `import proxy` usage instructions. * Add pydoc reference for developers * Put pydoc as internal documentation
2019-10-02 07:09:35 +00:00
# google-fluentd (Stackdriver) log input configuration file
#
# 1. Copy this configuration file as proxy.py.conf under:
# /etc/google-fluentd/config.d/
# 2. Update `path` field to log file path as used with
# --log-file flag. By default `/tmp/proxy.log` path is tailed.
# 3. Reload google-fluentd:
# sudo service google-fluentd restart
# 4. Now `proxy.py` logs can be browsed using GCE log viewer:
# https://console.cloud.google.com/logs/viewer
#
# See https://cloud.google.com/logging/docs/agent/configuration#third-party_application_log_input_configuration
# for more options.
<source>
@type tail
format none
path /tmp/proxy.log
pos_file /var/lib/google-fluentd/pos/proxy-py.pos
read_from_head true
tag proxy.py
</source>