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 ## 议程 • 推送服务器介绍 • 推送服务架构 • 部分代码 • 上线效果 逻辑架构 : name name = yield from websocket.recv() print("{}".format(name)) greeting = "Hello {}!" yield from websocket.send(greeting) print("{}".format(greeting)) start_server =0 码力 | 27 页 | 143.46 KB | 2 年前3
websockets Documentation
Release 1.0Limitations 15 6 License 17 Python Module Index 19 websockets is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with a focus on correctness and simplicity Example Here’s a WebSocket server example. It reads a name from the client and sends a message. #!/usr/bin/env python import asyncio import websockets @asyncio.coroutine def hello(websocket, uri): name name = yield from websocket.recv() print("{}".format(name)) greeting = "Hello {}!".format(name) print("> {}".format(greeting)) websocket.send(greeting) start_server0 码力 | 25 页 | 137.62 KB | 2 年前3
银河麒麟服务器操作系统V4 Hadoop 软件适配手册# 银河麒麟服务器操作系统 V4 Hadoop 软件适配手册  天津麒麟信息技术有限公司 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
基于 Rust 语言编写的可编程的全球分布式 MQTT 服务器 王文庭0 码力 | 31 页 | 3.95 MB | 2 年前3
websockets Documentation
Release 3.3Limitations ..... 3.6 Changelog ..... 3.7 License ..... Python Module Index websocket is a library for developing WebSocket servers and clients in Python. It implements RFC 6455 with focus on correctness Here’s a WebSocket server example. It reads a name from the client, sends a greeting, and closes the connection. #!/usr/bin/env python import asyncio import websockets async def hello(websocket, path): path): name = await websocket.recv() print("{}".format(name)) greeting = "Hello {}!".format(name) await websocket.send(greeting) print("> {}".format(greeting))0 码力 | 32 页 | 176.18 KB | 2 年前3
Tornado 6.3 Documentation
to a module, dictionary, or a list of modules and/or dicts. See UI modules for more details. • websocket_ping_interval: If set to a number, all websockets will be pinged every n seconds. This can help proxy servers which close idle connections, and it can detect if the websocket has failed without being properly closed. • websocket_ping_timeout: If the ping interval is set, and the server doesn't doesn't receive a 'pong' in this many seconds, it will close the websocket. The default is three times the ping interval, with a minimum of 30 seconds. Ignored if the ping interval is not set. ## Authentication0 码力 | 264 页 | 1.06 MB | 2 年前3
Tornado 6.2 Documentation
to a module, dictionary, or a list of modules and/or dicts. See UI modules for more details. • websocket_ping_interval: If set to a number, all websockets will be pinged every n seconds. This can help proxy servers which close idle connections, and it can detect if the websocket has failed without being properly closed. • websocket_ping_timeout: If the ping interval is set, and the server doesn't doesn't receive a 'pong' in this many seconds, it will close the websocket. The default is three times the ping interval, with a minimum of 30 seconds. Ignored if the ping interval is not set. ## Authentication0 码力 | 260 页 | 1.06 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













