Skip to main content

Build Status Documentation Status Total alerts Language grade: Python Maintainability Test Coverage Coverage Status Requirements Status pre-commit GitHub license PyPI version fury.io PyPI pyversions PyPI status DOI

WTG-SEAL

A Web Traffic Generator based on SURGE, Statistics and Locust

Overview

WTG-SEAL is a web traffic generator based on a statistical approach inspired by SURGE [1] and implemented using Locust.

In fact, it is expected that the input files for WTG-SEAL are the output files from SURGE, although one should be able to create their own files.

Getting Started

Installing with pip

To install the latest release of WTG-SEAL, just run

pip install wtg-seal

Requirements

In order to generate your locustfile.py using WTG-SEAL, you will need of two text files formatted as follow:

Documents Definitions

A text file where each line describes a web document, which is defined as a collection of one or more objects. For instance, a docdef.txt with the following content:

1
5 8

maps to a document represented by a single file 1.txt and another document represented by the files 5.txt and 8.txt. Each document is identified by a sequential number (the order it appears on the file, starting from 0).

Ideally, this is the objout.txt file generated by SURGE.

Documents Requests Sequence

A text file where each line contains a document identifier (i.e an integer) in the order they were to be requested to a web server. For instance, a docseq.txt with the following content:

0
0
1
0

represents requests to documents 0, 0, 1, 0. This is used by WTG-SEAL to calculate the weight of each locust task.

Ideally, this is the name.txt file generated by SURGE.

Server Side

Considering the previous example, it would be necessary that files named 1.txt, 5.txt and 8.txt exist on a web-server to where the requests will be made.

Generating web traffic

Once you have the appropriate files, just run

wtgseal docdef.txt docseq.txt

This will create a file in the current directory named locustfile.py.

From here, you will rely on Locust to generate the web traffic towards a web server of your choice. Just run

locust

and access the URL provided on your screen. For more information, see Locust documentation.

Contributing

For contributing or making your own modifications to the source code, run:

git clone https://github.com/mchoji/wtg-seal.git
cd wtg-seal
pipenv install -e .
pipenv install --dev

Pre-commit hooks

In order to make sure the hooks will run, please don't forget to install the pre-commit package:

cd wtg-seal
pipenv install --dev
pipenv run pre-commit install
# update the hooks to the latest version
pipenv run pre-commit autoupdate

Versioning

Versions defined according to SemVer. For the versions available, see the tags on this repository.

Authors

License

WTG-SEAL is licensed under the GNU General Public License v3.0. See LICENSE for more information.

References

[1] Barford, P., & Crovella, M. (1998, June). Generating representative web workloads for network and server performance evaluation. In Proceedings of the 1998 ACM SIGMETRICS joint international conference on Measurement and modeling of computer systems (pp. 151-160). ↩

Metadata

Release files for wtg-seal 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for wtg-seal 0.4.0
File Interpreter ABI Platform Actions
wtg_seal-0.4.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for wtg_seal-0.4.0-py2.py3-none-any.whl

Release files / wtg_seal-0.4.0-py2.py3-none-any.whl

Download URL wtg_seal-0.4.0-py2.py3-none-any.whl
Size 22.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
bfedd015dd34ac7065b13969cd82e4f4ebbeb280b95b2a77467394a1b4897273
BLAKE2b-256 checksum
How to use checksums
79dfd003de0a217c831338c69f2247a8627cb15cc4772f3d9a1a9ff067213fcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

Security for wtg-seal 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page