TGT服务器的优化## TGT 服务器的优化 ## 块设备协议 • NBD • Linux专有块设备协议 • iSCSI • 广泛支持的外部设备协议(块,磁带等) ## Curve云原生存储支持块设备 • 通过NBD,只支持Linux - 通过SDK API,目前只支持Linux - PFS · 扩大使用范围 - 通过iSCSI支持更多系统,例如Windows, 类UNIX系统等,使用两项基础技术 Client端: iscsi initiator,系统自带 • Linux open-iscsi • Windows iSCSI 发起者 • 服务器端 • 必须是CurveBS原生支持的平台,因为需要curve原生接口,目前是Linux ## iSCSI target服务器 • LINUX LILO • 一般用于输出内核本地块设备 • TCMU • 作为LILO支持用户态的接口 • 如何评价LILO brpc, c++, protobuf 等) • TCMU多了一层转接,配置过程复杂,业界踩的坑不够多。 • TCMU的用户态代码会受到框架约束,不够灵活。 ## iSCSI target 服务器 • TGT(STGT) • 比较久的历史,原来叫STGT,后来改成TGT • 纯用户态,不与内核绑定 - 支持复杂的存储系统,例如Ceph RBD, sheepdog, Glfs • 纯C代码,外加一些脚本0 码力 | 15 页 | 637.11 KB | 1 年前3
用Go语言实现推送服务器## 用Go语言实现推送服务器 陈叶皓 chen.yh@ctrip.com ## 议程 • 推送服务器介绍 • Golang特点 • 推送服务架构 • 部分代码 • 上线效果 ## 议程 • 推送服务器介绍 • 推送服务架构 • 部分代码 • 上线效果 ## 什么是推送服务器 • 推送业务信息到手机端 • 始终保持连接 ## 推送服务器要求 · 高并发 • 可靠性 • 高性能 • 支持水平扩展 • 无单点故障 ## Go语言特性 • 静态的、编译的 • 自动内存回收 • 命令式编程 • 函数可以作为值 • 面向并发 • 内置RPC支持 ## 推送服务器要求的应对 - 高并发 - goroutine - 可靠性 - 使用Redis暂存消息 - 高性能 - 静态编译语言 - 支持水平扩展 - 使用RPC组成集群 goroutine使用channel交换消息 - 异步场景,直接往指定channel发送数据 - 同步场景,往channel发送的数据中,包含一个获取返回值的channel ## 议程 • 推送服务器介绍 • 推送服务架构 • 部分代码 • 上线效果 逻辑架构  天津麒麟信息技术有限公司 2019年5月 ## 目录 目录 ..... I 1 概述 ..... 2 1.1 系统概述 ..... 2 1.2 环境概述 .. 银河麒麟服务器操作系统主要面向军队综合电子信息系统、金融系统以及电力系统等国家关键行业的服务器应用领域,突出高安全性、高可用性、高效数据处理、虚拟化等关键技术优势,针对关键业务构建的丰富高效、安全可靠的功能特性,兼容适配长城、联想、浪潮、华为、曙光等国内主流厂商的服务器整机产品,以及达梦、金仓、神通等主要国产数据库和中创、金蝶、东方通等国产中间件,满足虚拟化、云计算和大数据时代,服务器业务对操作 系统在性能、安全性及可扩展性等方面的需求,是一款具有高安全、高可用、高可靠、高性能的自主可控服务器操作系统。 ### 1.2 环境概述 |服务器型号|长城信安擎天 DF720 服务器| |---|---| |CPU 类型|飞腾 2000+处理器| |操作系统版本|Kylin-4.0.2-server-sp2-2000-19050910.Z1| |内核版本|4.4.131| |hadoop 版本|20 码力 | 8 页 | 313.35 KB | 2 年前3
鸟哥的Linux私房菜:服务器架设篇 第三版鸟哥的Linux私房菜:服务器架 设篇 第三版 书栈(BookStack.CN) ## 目录 致谢 README 1. 第一部份:架站前的进修专区 2. 作者序 3. 第一章、架设服务器前的准备工作 3.1.1.1 前言:Linux 有啥功能 3.2.1.2 基本架设服务器流程 3.3.1.3 自我评估是否已经具有架站的能力 7 参考数据与延伸阅读 12. 第九章、防火墙与 NAT 服务器 12.1.9.1 认识防火墙 12.2.9.2 TCP Wrappers 12.3.9.3 Linux 的封包过滤软件:iptables 12.4.9.4 单机防火墙的一个实例 12.5.9.5 NAT 服务器的设定 12.6.9.6 重点回顾 12.7.9 第三部分:局域网络内常见的服务器架设 15. 第十一章、远程联机服务器 SSH / XDMCP / VNC / RDP 15.1.11.1 远程联机服务器 15.2.11.2 文字接口联机服务器:SSH 服务器 15.3.11.3 最原始图形接口:Xdmcp 服务的启用 15.4.11.4 华丽的图形接口:VNC 服务器 15.5.11.5 仿真的远程桌面系统:XRDP 服务器 150 码力 | 795 页 | 17.63 MB | 1 年前3
waitress Documentation v1.1.0## Waitress Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs IP addresses, on port 8080, you can omit the host and port arguments and just call serve with the WSGI app as a single argument: from waitress import serve serve(wskiapp) Press Ctrl-C (or Ctrl-Break change this. There’s an entry point for PasteDeploy. (egg:waitress#main) that lets you use Waitress’s WSGI gateway from a configuration file, e.g.: [server:main] use = egg:waitress#main listen = 127.0.0.1:80800 码力 | 36 页 | 41.63 KB | 1 年前3
基于 Rust 语言编写的可编程的全球分布式 MQTT 服务器 王文庭0 码力 | 31 页 | 3.95 MB | 2 年前3
Falcon v1.4.1 Documentation# The Falcon Web Framework Release v1.4 (Installation) Falcon is a minimalist WSGI library for building speedy web APIs and app backends. We like to think of Falcon as the Dieter Rams of web frameworks • Falcon License • Installation • PyPy • CPython • Dependencies • WSGI Server • Source Code • Quickstart • Learning by Example • More Features • Tutorial and tries to do as little as possible while remaining highly effective. Falcon apps work with any WSGI server, and run great under CPython 2.7, PyPy, and CPython 3.3+. ## How is Falcon different? We0 码力 | 231 页 | 272.52 KB | 2 年前3
Tornado 6.2 Documentation
2022 Powered by TCPDF (www.tcpdf.org) ## CONTENTS 1 Quick links 3 2 Hello, world 5 3 Threads and WSGI 7 4 asyncio Integration 9 5 Installation 11 6 Documentation 13 6.1 User's guide 13 6 features; for that see this simple chat room. ## THREAD'S AND WSGI Tornado is different from most Python web frameworks. It is not based on WSGI, and it is typically run with only one thread per process. User's guide for more on Tornado's approach to asynchronous programming. While some support of WSGI is available in the tornado.wski module, it is not a focus of development and most applications should0 码力 | 260 页 | 1.06 MB | 2 年前3
waitress Documentation v2.1.1## Waitress Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs supported by Waitress ## Bugfix - wsgi.file_wrapper now sets the seekable, seek, and tell attributes from the underlying file if the underlying file is seekable. This allows WSGI middleware to implement things es/357. With thanks to Florian Schulze for testing/validating this fix! ## Features - When the WSGI app starts sending data to the output buffer, we now attempt to send data directly to the socket.0 码力 | 53 页 | 58.27 KB | 1 年前3
waitress Documentation v1.4.0## Waitress Waitress is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones which live in the Python standard library. It runs Design • Differences from zope.server • waitress API • Arguments to waitress.serve • Support for wsgi.file wrapper • waitress-serve • Socket Activation Glossary ## Change History #### 1.4. 0 (2019-12-20) supports chunked encoding it does not support gzip and it is unable to pass that to the underlying WSGI environment correctly. Waitress DOES NOT implement support for Transfer-Encoding: identity even though0 码力 | 48 页 | 54.34 KB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













