eduardrosert / locust-wms-load-test Goto Github PK
View Code? Open in Web Editor NEWLoad Tests for OGC Web Map Service (WMS) using https://locust.io
License: Apache License 2.0
Load Tests for OGC Web Map Service (WMS) using https://locust.io
License: Apache License 2.0
Hello,
I tried to run the WMS test... at first it looked promising.
However I found the following problems:
# docker run --rm -i -t -p 8089:8089 \
--env LOG_VERBOSE=1 \
eduardrosert/locust-wms-test
[2023-12-06 12:16:09,675] 121eb5b3bb1a/INFO/locust.main: Starting web interface at http://0.0.0.0:8089 (accepting connections from all network interfaces)
[2023-12-06 12:16:09,682] 121eb5b3bb1a/INFO/locust.main: Starting Locust 2.2.3
[2023-12-06 12:16:29,460] 121eb5b3bb1a/INFO/locust.runners: Ramping to 100 users at a rate of 10.00 per second
Request successful: https://gis.xxx.com/geoserver/wms?request=GetCapabilities&service=wms&version=1.3.0
Looking to adopt locust and replace Jmeter as load-testing framework for OWS
Ran this container with:
docker run --rm -i -t -p 8089:8089 eduardrosert/locust-wms-test locust -f /app/wms-load-test/locustfile.py --host=https://ows.dea.ga.gov.au//wms
Ran into the following errors:
File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 374, in run
self.execute_next_task()
File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 400, in execute_next_task
self.execute_task(task["callable"], *task["args"], **task["kwargs"])
File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 412, in execute_task
task(self, *args, **kwargs)
File "/app/wms-load-test/locustfile.py", line 527, in get_capa
self.allLayers[wmsversion] = getAllLayers(capabilities=capabilities, wmsversion=wmsversion)
File "/app/wms-load-test/locustfile.py", line 271, in getAllLayers
root = capabilities[rootNodeName]["Capability"]["Layer"]
'WMT_MS_Capabilities'
and
File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 374, in run
self.execute_next_task()
File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 400, in execute_next_task
self.execute_task(task["callable"], *task["args"], **task["kwargs"])
File "/usr/local/lib/python3.6/site-packages/locust/core.py", line 412, in execute_task
task(self, *args, **kwargs)
File "/app/wms-load-test/locustfile.py", line 527, in get_capa
self.allLayers[wmsversion] = getAllLayers(capabilities=capabilities, wmsversion=wmsversion)
File "/app/wms-load-test/locustfile.py", line 293, in getAllLayers
dimensions = getDimensions(layer, wmsversion = wmsversion)
File "/app/wms-load-test/locustfile.py", line 324, in getDimensions
dim = parseDimension(dimensions)
File "/app/wms-load-test/locustfile.py", line 253, in parseDimension
"values" : dimension["@default"], #fall back to default
'@default'
is XML file does not appear to have any style information associated with it. The document tree is shown below.
<ServiceExceptionReport xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.3.0" xsi:schemaLocation="http://www.opengis.net/ogc http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd">
<ServiceException locator="Width parameter"> Width 1200 exceeds supported maximum 512. </ServiceException>
</ServiceExceptionReport>
the current example https://github.com/EduardRosert/locust-wms-load-test/blob/master/k8s-locust-wms-test.yaml#L39-L40 returns command /bin/bash
not found error
tried
command: ["locust"]
args: ["-f /app/wms-load-test/locustfile.py"]
the pod doesn't start and errors
the pod started correctly when both command
and args
were commented out.
command: ["locust", "-f", "/app/wms-load-test/locustfile.py", "--host=$(WMS_SERVICE_URL)"]
# args: [ "-f /app/wms-load-test/locustfile.py"]
note, without $()
around WMS_SERVICE_URL
the value is taken as `$WMS_SERVICE_URL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.