 03 小罗 python与devops Mesos、swarm •服务注册与发现:Zookeeper、etcd、Consul •脚本语言:python、ruby、shell •日志管理:ELK、Logentries •系统监控:zabbix、prometheus 前东家关于Devops的一些实践 Devops传统方式下构建示例 Devops发布流程需要考虑几个问题 1、发布什么应用,发布到哪里(CMDB) 2、发布人员是否有权限(RBAC) 'unreachable': True}}} 监控系统二次开发 Zabbix api 二次开发 https://blog.51cto.com/xiaoluoge/1827151 #coding:utf-8 import time from zabbix_client import ZabbixServerProxy class Zabbix(): def __init__(self,url): self login(user="Admin", password="zabbix") ############## 查询组所有组获取组id ############### def get_hostgroup(self): data = { "output":['groupid','name'] } ret = self.zb.hostgroup.get(**data) return ret Zabbix api 开发的机柜告警平台0 码力 | 22 页 | 1.64 MB | 1 年前3 03 小罗 python与devops Mesos、swarm •服务注册与发现:Zookeeper、etcd、Consul •脚本语言:python、ruby、shell •日志管理:ELK、Logentries •系统监控:zabbix、prometheus 前东家关于Devops的一些实践 Devops传统方式下构建示例 Devops发布流程需要考虑几个问题 1、发布什么应用,发布到哪里(CMDB) 2、发布人员是否有权限(RBAC) 'unreachable': True}}} 监控系统二次开发 Zabbix api 二次开发 https://blog.51cto.com/xiaoluoge/1827151 #coding:utf-8 import time from zabbix_client import ZabbixServerProxy class Zabbix(): def __init__(self,url): self login(user="Admin", password="zabbix") ############## 查询组所有组获取组id ############### def get_hostgroup(self): data = { "output":['groupid','name'] } ret = self.zb.hostgroup.get(**data) return ret Zabbix api 开发的机柜告警平台0 码力 | 22 页 | 1.64 MB | 1 年前3
 1_丁来强_开源AIOps数据中台搭建与Python的作用应⽤用层性能监控 应⽤用层 ⽇日志 指标监控 prometheus + grafana + thanos elastic stack, TICK stack, Open Telemetry Zabbix, statsd, collectd Nagios, fluentd ⼏几个监控⽅方案作为中台的能⼒力力⽐比较 ⽅方案⽐比较 Prometheus Stack Elastic Stask TICK0 码力 | 48 页 | 17.54 MB | 1 年前3 1_丁来强_开源AIOps数据中台搭建与Python的作用应⽤用层性能监控 应⽤用层 ⽇日志 指标监控 prometheus + grafana + thanos elastic stack, TICK stack, Open Telemetry Zabbix, statsd, collectd Nagios, fluentd ⼏几个监控⽅方案作为中台的能⼒力力⽐比较 ⽅方案⽐比较 Prometheus Stack Elastic Stask TICK0 码力 | 48 页 | 17.54 MB | 1 年前3
 waitress Documentation v3.0.1
supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper 412 Document that trusted_proxy may be set to a wildcard value to trust all proxies. See https://github.com/Pylons/waitress/pull/431 Updated Defaults clear_untrusted_proxy_headers is set to True by default clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github.0 码力 | 55 页 | 56.36 KB | 1 年前3 waitress Documentation v3.0.1
supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper 412 Document that trusted_proxy may be set to a wildcard value to trust all proxies. See https://github.com/Pylons/waitress/pull/431 Updated Defaults clear_untrusted_proxy_headers is set to True by default clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github.0 码力 | 55 页 | 56.36 KB | 1 年前3
 waitress Documentation v2.1.1supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github. mailing list with 1.2.0b1. 1.2.0b1 (2018-12-31) Happy New Year! Features Setting the trusted_proxy setting to '*' (wildcard) will allow all upstreams to be considered trusted proxies, thereby allowing0 码力 | 53 页 | 58.27 KB | 1 年前3 waitress Documentation v2.1.1supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github. mailing list with 1.2.0b1. 1.2.0b1 (2018-12-31) Happy New Year! Features Setting the trusted_proxy setting to '*' (wildcard) will allow all upstreams to be considered trusted proxies, thereby allowing0 码力 | 53 页 | 58.27 KB | 1 年前3
 waitress Documentation v2.1.0supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github. mailing list with 1.2.0b1. 1.2.0b1 (2018-12-31) Happy New Year! Features Setting the trusted_proxy setting to '*' (wildcard) will allow all upstreams to be considered trusted proxies, thereby allowing0 码力 | 52 页 | 57.95 KB | 1 年前3 waitress Documentation v2.1.0supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github. mailing list with 1.2.0b1. 1.2.0b1 (2018-12-31) Happy New Year! Features Setting the trusted_proxy setting to '*' (wildcard) will allow all upstreams to be considered trusted proxies, thereby allowing0 码力 | 52 页 | 57.95 KB | 1 年前3
 waitress Documentation v2.1.2you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import --listen "*:$PORT" \ --trusted-proxy '*' \ --trusted-proxy-headers 'x-forwarded-for x-forwarded-proto x-forwarded-port' \ --log-untrusted-proxy-headers \ --clear-untrusted-proxy-headers \ --threads ${WEB_CONCURRENCY:-4} ${WEB_CONCURRENCY:-4} \ myapp:wsgifunc The proxy config informs Waitress to trust the forwarding headers set by the Heroku load balancer. It also allows for setting the standard WEB_CONCURRENCY environment0 码力 | 115 页 | 272.79 KB | 1 年前3 waitress Documentation v2.1.2you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import --listen "*:$PORT" \ --trusted-proxy '*' \ --trusted-proxy-headers 'x-forwarded-for x-forwarded-proto x-forwarded-port' \ --log-untrusted-proxy-headers \ --clear-untrusted-proxy-headers \ --threads ${WEB_CONCURRENCY:-4} ${WEB_CONCURRENCY:-4} \ myapp:wsgifunc The proxy config informs Waitress to trust the forwarding headers set by the Heroku load balancer. It also allows for setting the standard WEB_CONCURRENCY environment0 码力 | 115 页 | 272.79 KB | 1 年前3
 waitress Documentation v2.1.1you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import --listen "*:$PORT" \ --trusted-proxy '*' \ --trusted-proxy-headers 'x-forwarded-for x-forwarded-proto x-forwarded-port' \ --log-untrusted-proxy-headers \ --clear-untrusted-proxy-headers \ --threads ${WEB_CONCURRENCY:-4} ${WEB_CONCURRENCY:-4} \ myapp:wsgifunc The proxy config informs Waitress to trust the forwarding headers set by the Heroku load balancer. It also allows for setting the standard WEB_CONCURRENCY environment0 码力 | 113 页 | 270.88 KB | 1 年前3 waitress Documentation v2.1.1you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import --listen "*:$PORT" \ --trusted-proxy '*' \ --trusted-proxy-headers 'x-forwarded-for x-forwarded-proto x-forwarded-port' \ --log-untrusted-proxy-headers \ --clear-untrusted-proxy-headers \ --threads ${WEB_CONCURRENCY:-4} ${WEB_CONCURRENCY:-4} \ myapp:wsgifunc The proxy config informs Waitress to trust the forwarding headers set by the Heroku load balancer. It also allows for setting the standard WEB_CONCURRENCY environment0 码力 | 113 页 | 270.88 KB | 1 年前3
 waitress Documentation v3.0.1you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import --listen "*:$PORT" \ --trusted-proxy '*' \ --trusted-proxy-headers 'x-forwarded-for x-forwarded-proto x-forwarded-port' \ --log-untrusted-proxy-headers \ --clear-untrusted-proxy-headers \ --threads ${WEB_CONCURRENCY:-4} ${WEB_CONCURRENCY:-4} \ myapp:wsgifunc The proxy config informs Waitress to trust the forwarding headers set by the Heroku load balancer. It also allows for setting the standard WEB_CONCURRENCY environment0 码力 | 119 页 | 339.46 KB | 1 年前3 waitress Documentation v3.0.1you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import --listen "*:$PORT" \ --trusted-proxy '*' \ --trusted-proxy-headers 'x-forwarded-for x-forwarded-proto x-forwarded-port' \ --log-untrusted-proxy-headers \ --clear-untrusted-proxy-headers \ --threads ${WEB_CONCURRENCY:-4} ${WEB_CONCURRENCY:-4} \ myapp:wsgifunc The proxy config informs Waitress to trust the forwarding headers set by the Heroku load balancer. It also allows for setting the standard WEB_CONCURRENCY environment0 码力 | 119 页 | 339.46 KB | 1 年前3
 waitress Documentation v1.4.0supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github. mailing list with 1.2.0b1. 1.2.0b1 (2018-12-31) Happy New Year! Features Setting the trusted_proxy setting to '*' (wildcard) will allow all upstreams to be considered trusted proxies, thereby allowing0 码力 | 48 页 | 54.34 KB | 1 年前3 waitress Documentation v1.4.0supports HTTP/1.0 and HTTP/1.1. Extended Documentation Usage Access Logging Using Behind a Reverse Proxy Design Differences from zope.server waitress API Arguments to waitress.serve Support for wsgi.file_wrapper clear_untrusted_proxy_headers to be usable without a trusted_proxy. https://github.com/Pylons/waitress/pull/228 Modified trusted_proxy_count to error when used without a trusted_proxy. https://github. mailing list with 1.2.0b1. 1.2.0b1 (2018-12-31) Happy New Year! Features Setting the trusted_proxy setting to '*' (wildcard) will allow all upstreams to be considered trusted proxies, thereby allowing0 码力 | 48 页 | 54.34 KB | 1 年前3
 waitress Documentation v1.3.1you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import Chapter 1. Extended Documentation waitress Documentation, Release 1.3.1 1.3 Using Behind a Reverse Proxy Often people will set up "pure Python" web servers behind reverse proxies, especially if they need requests behind a reverse proxy; these proxies often have lots of useful deployment knobs. If you’re using Waitress behind a reverse proxy, you’ll almost always want your reverse proxy to pass along the Host0 码力 | 95 页 | 249.32 KB | 1 年前3 waitress Documentation v1.3.1you want to serve your application through a UNIX domain socket (to serve a downstream HTTP server/proxy such as nginx, lighttpd, and so on), call serve with the unix_socket argument: from waitress import Chapter 1. Extended Documentation waitress Documentation, Release 1.3.1 1.3 Using Behind a Reverse Proxy Often people will set up "pure Python" web servers behind reverse proxies, especially if they need requests behind a reverse proxy; these proxies often have lots of useful deployment knobs. If you’re using Waitress behind a reverse proxy, you’ll almost always want your reverse proxy to pass along the Host0 码力 | 95 页 | 249.32 KB | 1 年前3
共 459 条
- 1
- 2
- 3
- 4
- 5
- 6
- 46














 
 