Skip to content

New 'maxactive' feature and misc fixes #424

@gerrieroos

Description

@gerrieroos

Hi there

We have been using tsung with great success but had a need to hard-limit the number of sessions in a particular phase. We have added a feature that lets you specify a 'maxactive' number of sessions on a phase, e.g.:

  <load>
    <arrivalphase phase="1" duration="10" unit="minute">
      <users arrivalrate="20" unit="second" maxactive="500"/>

During that phase the sessions will be introduced as normally determined by the arrivalrate but when they reach 500 no more sessions will be introduced. Once below this value, new sessions will be introduced again.

The attached patch # 0001 implements this.

Patch # 0002 fixes auto-scan of interface IP's on FreeBSD - the 'ifconfig' output uses tabs instead of spaces. More work might be required to cater for other systems using ifconfig.

The original justification for patch # 0003 is unfortunately not clear but maybe it's useful for somebody.

Patch # 0004 is an issue we picked up when we moved to the latest version of tsung - it looks like you now have to specify some CA certificates (per session) but in the past we never did and it would have been inconvenient for us to update a huge database of sessions we have already defined. We also can do with any reduced CPU load by not verifying servers.

Patch # 0005 makes TLSv1.3 work with https.

We have very limited Erlang experience so many of these might require some rework, but we hope you might find it useful.

Regards,
Gerrie Roos
XipLink Inc.

0005-Fix-tlsv1.3-support-reuse_sessions-must-not-be-speci.patch
0001-Support-for-maxactive-attribute-on-users-nodes-to-ha.patch
0002-Auto-scan-of-IP-s-on-FreeBSD.patch
0003-Make-it-simpler-to-use-long-erlang-node-names.-Helps.patch
0004-Fix-SSL-case-where-no-CA-cert-is-specified-Erlang-de.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions