Comments (6)
On what OS did you run sudo pip3 install invokust --target=python-packages
?
from invokust.
I tried on Ubuntu 18.04
from invokust.
More Information About the Operating System @FutureSharks
Virtualization: xen
Operating System: Ubuntu 18.04.5 LTS
Kernel: Linux 5.4.0-1030-aws
Architecture: x86-64
from invokust.
I think you'll have to paste your locust file also.
from invokust.
Locust File
`
from locust import HttpLocust, TaskSet, task, between
from os import environ
class WebsiteUser(HttpLocust):
wait_time = between(5.0, 9.0)
@task()
def get_home_page(self):
"""
Gets /
"""
self.client.get("/")
`
Lambda_Locust File
`
import sys
sys.path.insert(0, "python-packages")
import logging
import json
from invokust.aws_lambda import get_lambda_runtime_info
from invokust import LocustLoadTest, create_settings
logging.basicConfig(level=logging.INFO)
def handler(event=None, context=None):
try:
if event:
settings = create_settings(**event)
else:
settings = create_settings(from_environment=True)
loadtest = LocustLoadTest(settings)
loadtest.run()
except Exception as e:
logging.error("Locust exception {0}".format(repr(e)))
else:
locust_stats = loadtest.stats()
lambda_runtime_info = get_lambda_runtime_info(context)
loadtest_results = locust_stats.copy()
loadtest_results.update(lambda_runtime_info)
json_results = json.dumps(loadtest_results)
logging.info(json_results)
return json_results
`
Lambda Test Json Object
{ "locustfile": "princess_locustfile.py", "host": "https://cms.mod.studio/", "num_clients": "30", "hatch_rate": "1", "run_time": "5m" }
The newest Error That I'm getting
from invokust.
Your code blocks are all messed up so it's difficult to read what you have written. But it looks like you're not importing User
anywhere so the issue title does not make sense?
from invokust.
Related Issues (20)
- Error invoking lambda following quickstart HOT 3
- Semantic versioning HOT 2
- version 0.75 missing for Pypi HOT 3
- AWS deployment fails HOT 8
- Handle environment variables with `LambdaLoadTest` on Locust HOT 4
- Ability to deploy Lambda through AWS-CDK instead of using local script HOT 1
- Unable to use invokust. locust version == 1.3.0, locustio==0.13.5, invokust==0.73 HOT 6
- gevent error when attempting to invoke lambda HOT 3
- Does add_listener work? HOT 3
- No results when using LambdaLoadTest HOT 2
- segmentation fault (core dumped) HOT 4
- Can you output CSV or HTML reports?
- AWS Lambda deployment with function layer
- Negative execution time
- Use invokust with odoo HOT 3
- no option to save the load test report HOT 1
- Logging Configuration HOT 3
- LoadTestShape HOT 3
- AttributeError: 'StatsError' object has no attribute 'to_dict' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from invokust.