简述 我们可以通过调高ReplicationController、 ReplicaSet、 Deployment等可伸缩资源的rep让cas字段, 来手动实现pod中应用的横向扩容。 我们也可以通过增加pod容器的资源请求和限制来纵向扩容pod (尽管目前该操作只能在pod创建时, 而非运行时进行) ...
分类:
其他好文 时间:
2020-02-12 18:07:50
阅读次数:
80
setting.py import redis REDIS_DB = redis.Redis(host='127.0.0.1',port=6379,db=1) #db = 默认为1 还可以这样的配置 # redis 的配置文件 CACHES = { "default": { "BACKEND": " ...
分类:
其他好文 时间:
2020-02-12 13:05:51
阅读次数:
65
https://cuiqingcai.com/5445.html 安装 nginx 找到配置文件 find / -name nginx.conf 修改 http { server { listen 6801; location / { proxy_pass http://127.0.0.1:6800 ...
分类:
其他好文 时间:
2020-02-12 11:08:58
阅读次数:
210
Nginx: 1.安装nginx yum源 rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2.yum install nginx -y 3.mv ...
分类:
其他好文 时间:
2020-02-12 00:24:02
阅读次数:
74
参考:https://lequ7.com/2019/01/16/javascript/React-zu-jian-xie-zai-lu-you-tiao-zhuan-ye-mian-guan-bi-shua-xin-zhi-qian-jin-xing-ti-shi/ import {Prompt} ...
分类:
其他好文 时间:
2020-02-11 14:44:47
阅读次数:
164
https://www.cnblogs.com/inuex/p/4299690.html What I've done is go to this location in regedit: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services ...
分类:
其他好文 时间:
2020-02-11 10:01:22
阅读次数:
82
Nginx的配置语法灵活,可控制度非常高。在0.7以后的版本中加入了一个try_files指令,配合命名location,可以部分替代原本常用的rewrite配置方式,提高解析效率。 try_files指令说明 try_files指令语法:try_files file ... uri 或 try_f ...
分类:
其他好文 时间:
2020-02-11 00:25:02
阅读次数:
81
1.Nginx解决服务器宕机问题,Nginx配置服务器宕机策略,如果服务器宕机,会找下一台机器进行访问 配置nginx.cfg配置文件,在映射拦截地址中加入代理地址响应方案 location / { proxy_connect_timeout 1; proxy_send_timeout 1; pro ...
分类:
其他好文 时间:
2020-02-10 21:04:14
阅读次数:
87
解决服务器宕机 配置nginx.cfg配置文件,在映射拦截地址中加入代理地址响应方案 location / { proxy_connect_timeout 1; proxy_send_timeout 1; proxy_read_timeout 1; proxy_pass http://backser ...
分类:
其他好文 时间:
2020-02-10 18:31:24
阅读次数:
130
Nginx解决服务器宕机问题,Nginx配置服务器宕机策略,如果服务器宕机,会找下一台机器进行访问 配置nginx.cfg配置文件,在映射拦截地址中加入代理地址响应方案 location / { #秒为单位 proxy_connect_timeout 1; proxy_send_timeout 1; ...
分类:
其他好文 时间:
2020-02-10 18:17:36
阅读次数:
82