Working with Asynchrony Generically: A Tour of C++ Executors
unifex::static_thread_pool workers; ex::sender auto accept_and_process_requests() { return ex::on(low_latency.get_scheduler(), accept_request()) | ex::transfer(workers.get_scheduler()) | ex::then([](auto process_request(request_t); extern unifex::static_thread_pool low_latency; extern unifex::static_thread_pool workers; unifex::taskaccept_and_process_requests() { while (true) { auto request = co_await co_await ex::on(low_latency.get_scheduler(), accept_request()); co_await ex::on(workers.get_scheduler(), process_request(request)); } } Or write it as a coroutine.17 Schedulers produce senders 0 码力 | 121 页 | 7.73 MB | 5 月前3Автоматизация управления ClickHouse-кластерами в Kubernetes
Zookeeper-2 Zookeeper-1 Replica Service Load Balancer Service Shard 1 Replica 2 Shard 2 Replica 1 Shard 2 Replica 2 Replica Service Replica Service Replica Service User Config Map Common Config Running NAME TYPE CLUSTER-IP service/chi-demo-01-demo-0-0 ClusterIP None service/clickhouse-demo-01 LoadBalancer 10.98.143.187 NAME TYPE CLUSTER-IP service/chi-demo-01-demo-0-0 ClusterIP None service/chi-demo-01-demo-1-0 ClusterIP None service/clickhouse-demo-01 LoadBalancer 10.98.1430 码力 | 44 页 | 2.24 MB | 1 年前3Secure your microservices with istio step by step
#IstioCon Security Architecture #IstioCon Bookinfo architecture without service mesh ● Reviews-v1 ○ doesn’t call the ratings service. ● Reviews-v2 ○ calls ratings, black stars ● Reviews-v3 ○ calls services with istio sidecar without reviews-v2 2) Deploy bookinfo gateway 3) Deploy reviews-v2 service without istio sidecar ( kubectl label namespace default istio-injection=disabled/enabled ) Initializing services with istio sidecar without reviews-v2 2) Deploy bookinfo gateway 3) Deploy reviews-v2 service without istio sidecar ( kubectl label namespace default istio-injection=disabled/enabled ) http0 码力 | 34 页 | 67.93 MB | 1 年前3绕过conntrack,使用eBPF增强 IPVS优化K8s网络性能
Zhiguohong (honkiko@github) Bypassing conntrack: Optimizing K8s Service By Enhancing IPVS with eBPF Agenda 目录 01 Problems with K8s Service How to optimize 02 Comparison with industry Performance measurement measurement 03 04 Future work 05 06 Lessons from eBPF What is K8s Service • It exposes a set of pods via VIP using a load balancer • Two types • ClusterIP provides in-cluster access • NodePort not use DPDK? • DPDK performs busy polling even when network is idle. • Why not use a pure eBPF service? • Not mature enough eBPF brief • Write C • Compile into eBPF assembly code • Inject to kernel0 码力 | 24 页 | 1.90 MB | 1 年前3Analyzing MySQL Logs with ClickHouse
• clicktail –c /etc/clicktail/clicktail.conf • To See how it works • service clicktail start • To run as a service © 2018 Percona. 15 MySQL Logs Primer General Query Log Binary Log –server pmm.your-domain.com • pmm-admin add linux:metrics • pmm-admin add external:service clickhouse --interval 10s --service-port=9116 © 2018 Percona. 40 Use Advanced Data Exploration Dashboard © 20180 码力 | 43 页 | 2.70 MB | 1 年前3No Silver Bullet – Essence and Accident in Software Engineering
to network it I need… • a Service Mesh, but to secure it I need… • an automated Certificate Authority, and for more security I need… • a Container scanning and monitoring service, and to monitor it more • a Log Aggregation and Search service, but to install it I need… • root access on a bunch of servers, but I need more servers so I need… • an Infrastructure as a Service platform, but for high availability0 码力 | 35 页 | 1.43 MB | 5 月前3Rust 异步并发框架在移动端的应用 - 陈明煜
quality of service 任务优先级调度 Linux CFS 调度 : 线程优先级 • 设置线程的 Nice 值给予线程不同的权重 2 个线程 A 和 B 。 A 的权重是 1024 , B 的权重是 2048 。那么 A 获得 CPU 的时间比例是 1024/ (1024 + 2048) = 33.3% Task priority and quality of service 任务优先级调度 拥有不同权重。 • 由 Kernel 决定调度时间 • 高优先级任务由高权重线程调度, 以此获得更多执行时间 • 全局队列区分高低优先级 Task priority and quality of service 高权重线程 低权重线程 task …. task …. Global queue task Local queue task Local queue Core 高权重线程 任务优先级调度 根据工作线程的优先级进行绑核(大小核) • 高优先级任务在大核执行,高性能 • 低优先级任务在小核执行,节省能耗 Task priority and quality of service Big Core Little Core 高优先级线程 低优先级线程 普通优先级线程 Set core-affinity IO & CPU 融合 北向接口融合:异步并行迭代器 0 码力 | 25 页 | 1.64 MB | 1 年前3Harbor Deep Dive - Open source trusted cloud native registry
Architecture API Routing API Routing Core Service (API/Auth/GUI) Image Registry Trusted Content Vulnerability Scanning Job Service Admin Service Harbor components 3rd party components SQL0 码力 | 15 页 | 8.40 MB | 1 年前3servlet mechanism
service() doGet() doPost() Get Request Post Request Response Response Web Server HttpServlet subclass 注意: 方法由 HttpServlet 的子类实现0 码力 | 1 页 | 39.21 KB | 1 年前3Building Robot Apps
Connect Send Command s https:// www.npmjs.com/package/nativescript-bluet ooth Sending commands Service / Characteristics Sending commands Protocol • https://github.com/WowWeeLabs/MiP-BLE-Protocol/b0 码力 | 18 页 | 14.80 MB | 1 年前3
共 14 条
- 1
- 2