tsung集群压测tigase问题

wangxm001 发布于 2016/01/20 09:25
阅读 519
收藏 0

@古月楼 你好,想跟你请教个问题:

        您好,最近我在使用tsung集群8个节点对tigase集群4个节点进行压力测试,按照您的博客上说的,tsung的每个节点的client名称都不一致,可是压测后在数据库中生成的用户名称还是以tsung中的控制节点中的用户名称相同,而且压测用户量为360000,而mysql中仅生成140000个用户,tigase报错提示                              at tigase.util.WorkerThread.run(WorkerThread.java:128)
Caused by: tigase.db.UserNotFoundException: User does not exist: tsunga232069@tig.g.com, in database: jdbc:mysql://192.168.55.239:3501/tigasedb?user
=root&password=test&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true
        at tigase.db.jdbc.TigaseCustomAuth.userLoginAuth(TigaseCustomAuth.java:887)
        at tigase.db.jdbc.TigaseCustomAuth.plainAuth(TigaseCustomAuth.java:618)
        at tigase.db.jdbc.TigaseCustomAuth.otherAuth(TigaseCustomAuth.java:601)
还有些其他的IO错误,目前没有思路解决这个问题

下面是我的tsung脚本,基本上是按照您网站上的做的:

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/tsung/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" dumptraffic="false" version="1.0">

    <clients>
    <client host="server08" use_controller_vm="true"  maxusers="60000"></client>
    <client host="server07" use_controller_vm="true"  maxusers="60000"></client>
    <client host="server05" use_controller_vm="true"  maxusers="60000"></client>
    <client host="server17" use_controller_vm="true"  maxusers="60000"></client>
    <client host="server04" use_controller_vm="true"  maxusers="60000"></client>
    <client host="server09" use_controller_vm="true"  maxusers="60000"></client>
    </clients>

    <servers>
        <server host='tig.g.com' port='5222' type='tcp' />
    </servers>

    <!-- register 80000 <span></span>users in less than 15 minutes -->
    <load>
        <arrivalphase phase="1" duration="25" unit="minute">
            <users maxnumber="360000" interarrival="0.004" unit="second"></users>
        </arrivalphase>
    </load>

    <options>
        <option type="ts_jabber" name="global_number" value="360000"></option>
        <option type="ts_jabber" name="userid_max" value="360000"></option>
        <option type="ts_jabber" name="domain" value="tig.g.com"></option>
        <option type="ts_jabber" name="username" value="tsunga"></option>
        <option type="ts_jabber" name="passwd" value="tsunga"></option>
    </options>


    <sessions>
        <session probability="100" name="jabber-example" type="ts_jabber">
            <!-- 连接 -->
            <request>
                <jabber type="connect" ack="no_ack"></jabber>
            </request>
            <thinktime value="2"></thinktime>
            <!-- 注册 -->
            <request>
                <match do="abort" when="match">error</match>
                <jabber type="register" ack="local" id="new"></jabber>
            </request>
            <!-- 认证 -->
            <transaction name="authenticate">
                <request>
                    <jabber type="auth_get" ack="local"></jabber>
                </request>
                <request>
                    <jabber type="auth_set_plain" ack="local"></jabber>
                </request>
            </transaction>

            <!-- 登录后持续300秒 -->
            <request>
                <jabber type="presence:initial" ack="no_ack" />
            </request>
            <thinktime value="600"></thinktime>
            <!-- 关闭 -->

            <request>
                <jabber type="close" ack="no_ack"></jabber>
            </request>

        </session>
    </sessions>

</tsung>

 

请问能否给些建议和指导,非常感谢!

加载中
返回顶部
顶部