一、集群架构随着互联网的发展,服务端请求量越来越大,服务器负载压力越来越大。另外,如果采用单点服务器对外提供服务,当单点服务器故障时,整个网络服务将瘫痪。集群架构因此出现,将成千上万台服务器有机的集合在一起共同提供服务。实现方式基于硬件:F5的BIG-IP、radware的AppDirector。基于软件:OSI四层的LVS,OSI七层的Nginx,以及HAproxy集群核心负载均衡、高可用二、L
分类:
其他好文 时间:
2019-03-05 12:47:11
阅读次数:
215
# coding:utf-8 import requests import hashlib import time import json def interpret(contents): url = 'http://fanyi.youdao.com/translate_o?smartresult=... ...
分类:
其他好文 时间:
2019-03-03 13:32:07
阅读次数:
198
浅拷贝:只拷贝一层深拷贝:克隆一份a = [[1,2],3,4]b = a.copy() #b = a[:] 完成一次浅拷贝# copy(self, *args, **kwargs): # real signature unknown# """ Return a shallow copy of th... ...
分类:
其他好文 时间:
2019-03-02 19:58:28
阅读次数:
200
REMOTE_ADDR 表示发出请求的远程主机的 IP 地址,remote_addr代表客户端的IP,但它的值不是由客户端提供的,而是服务端根据客户端的ip指定的,当你的浏览器访问某个网站时,假设中间没有任何代理,那么网站的web服务器(Nginx,Apache等)就会把remote_addr设为你 ...
分类:
Web程序 时间:
2019-02-28 18:12:29
阅读次数:
727
一、创新点和解决的问题 创新点 设计Region Proposal Networks【RPN】,利用CNN卷积操作后的特征图生成region proposals,代替了Selective Search、EdgeBoxes等方法,速度上提升明显; 训练Region Proposal Networks与 ...
分类:
Web程序 时间:
2019-02-27 10:24:00
阅读次数:
321
1108 Finding Average (20 分) The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated ...
分类:
其他好文 时间:
2019-02-27 01:45:34
阅读次数:
177
最近看了一文说到异步是单线程的,顿时就傻眼了,对相关概念和同事进行了一些讨论和总结. 文中的描述是以我的理解来说的,可能不一定准确甚至正确,有错欢迎指正. 这三个概念我认为是描述不同的维度的,概念正交. 异步 同步 异步和同步是不同的流程设计风格. 但存在依赖关系的操作之间是同步的,也就是如果操作B ...
分类:
编程语言 时间:
2019-02-25 09:26:00
阅读次数:
212
Exercise 22.6 Recall that \(\mathbb{R}_{K}\) denotes the real line in the \(K\)-topology. Let \(Y\) be the quotient space obtained from \(\mathbb{R}_K ...
分类:
其他好文 时间:
2019-02-25 00:54:17
阅读次数:
87
#include <stdlib.h> <stdio.h> system(""); 命令 调用系统的指令 C 基本数据类型 没有boolean 没有byte c Char类型 1字节 long类型 4字节 多了一个signed unsigned 有符号无符号 用来修饰整型变量 加上unsigned之 ...
分类:
其他好文 时间:
2019-02-24 10:33:05
阅读次数:
172
#nginx开启的进程数worker_processes 4; #4核CPU #定义全局错误日志定义类型,[debug|info|notice|warn|crit]error_log logs/error.log info; ##指定进程ID存储文件位置pid logs/nginx.pid; eve ...
分类:
其他好文 时间:
2019-02-20 13:14:16
阅读次数:
170