How to stress test a specialized web server?

blov · · 548 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m working on an imageboard (think 4chan, Futaba, etc) server written in Go. It&#39;s designed to be powerful and easy to use, with an intuitive GUI. It can run as a standalone server or a FastCGI backend. It&#39;s very fast and responsive, but this is with a few users. What would be the best way to test many requests, something like what 4chan deals with, ISP speed bottleneck aside?</p> <hr/>**评论:**<br/><br/>Thomasdezeeuw: <pre><p>Try wrk (<a href="https://github.com/wg/wrk" rel="nofollow">https://github.com/wg/wrk</a>), it can create a lot of requests to simulate a high traffic situation.</p></pre>eggbertx: <pre><p>Sounds good. But could this reliably account for posts (it uses MySQL/MariaDB) and image uploads? Or would I be better of creating my own custom one, possibly based on wrk?</p></pre>elithrar_: <pre><p>wrk allows you to write custom Lua to generate request bodies, POSTs, etc. </p></pre>shovelpost: <pre><p>Is the project open source? </p> <p>Edit: Nevermind, I think I found it: <a href="https://github.com/Eggbertx/gochan" rel="nofollow">gochan</a></p></pre>eggbertx: <pre><p>Yeah, that&#39;s it.</p></pre>xrstf: <pre><p>JMeter is always a good stress testing tool, though it has its learning curve.</p></pre>elithrar_: <pre><p>Also: don&#39;t use FastCGI in Go. The FCGI server hasn&#39;t been optimized and is substantially lower than the HTTP server. Reverse proxy over HTTP (i.e. nginx to Go). </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

548 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传