bwangel's repos on GitHub
Shell · 1 人关注
build_git_version
Shell · 1 人关注
Config
Python · 1 人关注
django
Read the Django Source Code
0 人关注
101
A basic instruction for Kubernetes setup and understanding.
JavaScript · 0 人关注
500lines
500 Lines or Less
TypeScript · 0 人关注
angular-tour-of-heros
0 人关注
baseplate.go
Reddit's Service Framework in Go
0 人关注
baseplate.py
reddit's python service framework
Python · 0 人关注
Book3_Elements-of-Mathematics
Book_3_《数学要素》 | 鸢尾花书:从加减乘除到机器学习;上架;欢迎继续纠错,纠错多的同学还会有赠书!
Python · 0 人关注
bplustree
An on-disk B+tree for Python 3
JavaScript · 0 人关注
bridge
Go · 0 人关注
builder
Shell · 0 人关注
bwangelme.github.io
C++ · 0 人关注
CAlgo
Data Structure and Algorithm Analysis in c
JavaScript · 0 人关注
canvas
Some animations made by canvas
Go · 0 人关注
cellnet
高性能,简单,方便的开源服务器网络库
0 人关注
Certs
0 人关注
client-go
Go client for Kubernetes.
0 人关注
client_golang
Prometheus instrumentation library for Go applications
Go · 0 人关注
cncamp
0 人关注
confluent-kafka-python
Confluent's Kafka Python Client
C++ · 0 人关注
cpe
Go · 0 人关注
cronlib
⚔ golang crontab scheduler
Vim script · 0 人关注
cscope-maps
A set of maps for cscope that make searching more convenient
0 人关注
data-plane-api
[READ ONLY MIRROR] Envoy REST/proto API definitions and documentation.
0 人关注
DeepLearning-500-questions
深度学习500问,以问答形式对常用的概率知识、线性代数、机器学习、深度学习、计算机视觉等热点问题进行阐述,以帮助自己及有需要的读者。 全书分为15个章节,近20万字。由于水平有限,书中不妥之处恳请广大读者批评指正。 未完待续............ 如有意合作,联系[email protected] 版权所有,违权必究 Tan 2018.06
JavaScript · 0 人关注
devmap
Python · 0 人关注
DjangoBlog
Dockerfile · 0 人关注
dockerfiles
Go · 0 人关注
DockerFromScratch
bwangel

bwangel

V2EX 第 117628 号会员,加入于 2015-05-19 10:38:16 +08:00
根据 bwangel 的设置,主题列表只有在你登录之后才可查看
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
bwangel 最近回复了
这不就是赚钱的意义吗?赚的钱不给孩子花,还想自己死了以后带进棺材啊。
147 天前
回复了 iorilu 创建的主题 Python 大家现在写 Python , 用类型注解吗
python 中装饰器挺常见的,我发现给装饰器写个类型注解还是挺困难的。

主要的困难点在于,要求装饰器修饰的函数,类型要一致。多人开发的时候,这个保证有点难。
180 天前
回复了 LawlietZ 创建的主题 程序员 4202 年了,前端开发一定必须要用 mac 吗
"不用 mac 的,注定只能度过一个相对失败的人生"

果粉也太逆天了吧,怎么能说出这种话。
您可能是正版音乐的受害者
233 天前
回复了 huangyx 创建的主题 职场话题 关于我和直属领导发生的 battle


https://m.weibo.cn/status/4156683695307365?mblogid=4156683695307365&luicode=20000061&lfid=4156683695307365

确实是你的问题.

打工人不一定能把每件工作都完成,做到了什么程度,什么进度,和相关人员同步,却是一种很重要的美德。
十几万的车是用来开的,50 万以上的车已经不是用来开的来,是用来装逼的。

放飞无人机这个,开出去装逼确实可以。
https://linkerd.io/2.14/features/load-balancing/

不同 pod 之间响应时间不同才是正常的情况吧。

linkerd 专门有个负载均衡算法叫做 EWMA, 根据 pod 的响应时间,提供不同的流量值。响应时间越快的 pod, 收到的请求也越多。我们实测过,这样整体 p99 会更好。

https://github.com/mosn/mosn/pull/2274

曾有人想把这个负载均衡算法在 envoy 中也实现一遍,可惜最后没 merge

有个类似情况是 tcp 连接在多个线程之间如何分配

https://blog.envoyproxy.io/envoy-threading-model-a8d44b922310

envoy 的博客中提到了,多个线程监听了一个端口之后,连接具体分配到哪个线程完全是内核决定的。内核的策略也不是平均分配的,而是尽量塞满一个线程,再往下一个线程分配。

As discussed briefly above, all worker threads listen on all listeners without any sharding. Thus, the kernel is used to intelligently dispatch accepted sockets to worker threads. Modern kernels in general are very good at this; they employ features such as IO priority boosting to attempt to fill up a thread’s work before starting to employ other threads that are also listening on the same socket, as well as not using a single spin-lock for processing each accept.

因为请求发送到同一个线程上,能最大程度地利用内存缓存和 cpu 缓存,这样从整体来看,性能是更好的。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   965 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 21:53 · PVG 05:53 · LAX 14:53 · JFK 17:53
Developed with CodeLauncher
♥ Do have faith in what you're doing.