您使用什么来通过其自定义协议测试(功能/负载/压力)网络服务? [英] What have you used to test (functional/load/stress) your network service with its custom protocol?

查看:69
本文介绍了您使用什么来通过其自定义协议测试(功能/负载/压力)网络服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近创建了一个基于回合的游戏服务器,该服务器可以接受成千上万的同时客户端连接(长话短说-Linux上的epoll).通信基于简单,自定义,基于行的协议.该服务器允许客户端连接,寻找游戏比赛中的其他玩家,玩所述游戏(发送招式,聊天消息等),并在游戏结束时得到通知.

I recently created a turn-based game server that can accept 10s of thousands of simultaneous client connections (long story short - epoll on Linux). Communication is based on a simple, custom, line-based protocol. This server allows clients to connect, seek for other players in game matches, play said games (send moves, chat messages, etc.), and be notified when the game has ended.

我现在要做的是通过模拟客户端连接来测试服务器.我希望支持成千上万的同时连接,因此此测试对我来说非常重要.你们在自己的测试中使用什么?

What I'm looking to do now is test the server by simulating client connections. I'm hoping to support 10s of thousands of simultaneous connections, so this testing is very important to me. What do you guys use for your own testing?

我现在正在研究的一些东西是:pexpect(python期望lib用于功能测试)和tsung进行负载测试.

Some things I'm researching now are: pexpect (python expect lib for the functional testing) and tsung for load testing.

我希望能够从我的笔记本电脑进行测试,因为我没有可以连接的客户端计算机集群.也许我需要使用ip别名或类似的别名才能生成成千上万的出站套接字(每个接口AFAIK的限制为65K).

I'd like to be able to just test from my laptop since I do not have a cluster of client machines to connect from. Perhaps I'd need to use ip aliasing or some-such in order to generate 100s of thousands of outbound sockets (limit is 65K per interface AFAIK).

无论如何,在我看来,我需要一些相当定制的东西,但我认为我会在走这条路之前问问.

Anyway, it seems to me like I need something fairly custom but I thought I'd ask before I went down that path.

谢谢!

推荐答案

我认为最好自己动手".

I decided it was best to "roll my own" to start with.

这篇关于您使用什么来通过其自定义协议测试(功能/负载/压力)网络服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆