Skip to main content
A python package for region based abtesting.

Installation Guide
1. Install Python (if not has python installed)
Download python 2.7: https://www.python.org/downloads/release/python-2712/
Install Python 2.7
2. Install pip
To install pip, follow the link https://pip.pypa.io/en/latest/installing/
Download get-pip.py, https://bootstrap.pypa.io/get-pip.py
python get-pip.py
3. Install f5-sdk
pip install f5-sdk
4. Install f5abtesting
pip install f5abtesting
5. Patch f5-sdk
Copy f5sdk_pool_patch.py to pool.py in f5-sdk package

------------------------------------------------------------------

2 configure files need for the initialization.

ip2region.conf, input IP address to region mapping, here is an example:
region1 10.0.0.0/24
region1 10.10.2.0/24
region2 10.20.2.0/24
region2 10.30.0.0/24
region3 10.40.2.0/24
region3 10.50.2.0/24

irules_tmp.conf, an irules for F5 BIG-IP to distribute traffic to B pool:
# Replace ab_demo with the actual name of the virtual server

when CLIENT_ACCEPTED {
set debug 1
set vs_name_dg_ip2region ab_demo_dg_ip2region
set vs_name_dg_region2b ab_demo_dg_region2b
set vs_name_pool_b ab_demo_pool_b

set region_name [class lookup [IP::client_addr] $vs_name_dg_ip2region ]
if {$debug} {
log local0. "Client [IP::client_addr] accepted from $region_name, will be assigned to $vs_name_pool_b"
}
if { [class match $region_name equals $vs_name_dg_region2b]} {
pool $vs_name_pool_b
if {$debug} {
log local0. "region $region_name is assigned to $vs_name_pool_b"
}
}
}

Release files for f5abtesting 0.1.4

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

Source distribution (sdist)

Source distribution for f5abtesting 0.1.4
File Size Uploaded
f5abtesting-0.1.4.tar.gz 7.6 kB Details

Release files / f5abtesting-0.1.4.tar.gz

Download URL f5abtesting-0.1.4.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a0944ba06001e1d4a7f3995f2274d37aa87fa6492fdb3ee85d0e22b09c7fd7c3
BLAKE2b-256 checksum
How to use checksums
821237e455aa9d81357f18e702ae9b34de715096aa123530b499703eb078f19a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.4 This release

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.0

1 release file

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