aboutsummaryrefslogtreecommitdiff
path: root/contrib/locust
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2022-05-15 15:34:36 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2022-05-15 15:34:36 +0200
commit231f2cb2205988cf87062bc9f595307af1ed827f (patch)
treef1094bf50677abed5266feb17c65240a45d7a387 /contrib/locust
parent46e6b5fa84b1ec6e08f124c478909ec745562214 (diff)
downloadmacroblog.rs-231f2cb2205988cf87062bc9f595307af1ed827f.tar.gz
macroblog.rs-231f2cb2205988cf87062bc9f595307af1ed827f.tar.bz2
macroblog.rs-231f2cb2205988cf87062bc9f595307af1ed827f.zip
feat: Add missing blog post
Add the missing blog post from my hugo blog. Also add a locustfile so I can do some stress test locally.
Diffstat (limited to 'contrib/locust')
-rw-r--r--contrib/locust/locustfile.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/locust/locustfile.py b/contrib/locust/locustfile.py
new file mode 100644
index 0000000..ca7f8f3
--- /dev/null
+++ b/contrib/locust/locustfile.py
@@ -0,0 +1,18 @@
+from locust import HttpUser, task
+
+class HelloWorldUser(HttpUser):
+ @task
+ def index(self):
+ self.client.get("/")
+
+ @task
+ def posts(self):
+ self.client.get("/posts/2021-12-28K8S_private_gitlab_registry_using_podman.html")
+ self.client.get("/posts/2021-12-26Enable_NFS_on_K3S.html")
+ self.client.get("/posts/2020-08-22Moving_from_Github_to_Gilab_pages.html")
+ self.client.get("/posts/2020-07-14Friz_box_turned_off_DHCP.html")
+ self.client.get("/posts/2020-07-12Road_to_local_K8S.html")
+ self.client.get("/posts/2019-11-16Compiling_emacs_from_source_code_on_fedora.html")
+ self.client.get("/posts/2019-04-22Automating_desktop_setup_with_ansible-pull_part-2.html")
+ self.client.get("/posts/2019-03-07Automating_desktop_setup_with_ansible-pull_part-1.html")
+ self.client.get("/posts/2019-03-03Welcome_to_my_blog.html")