summaryrefslogtreecommitdiff
path: root/blob-multiprocess/makefile
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2018-01-05 09:37:26 -0200
committerdrebs <drebs@riseup.net>2018-01-05 09:37:26 -0200
commit7a2960d78baa00ef21da4e54c037a3f8cd78ccfc (patch)
tree8ac9e9b1b9b591365446ee00225323716c4232cb /blob-multiprocess/makefile
parentdde6cc729b2a32fc0201e9a124827e4bd7e6ca99 (diff)
Fix directory name.
Diffstat (limited to 'blob-multiprocess/makefile')
-rw-r--r--blob-multiprocess/makefile44
1 files changed, 0 insertions, 44 deletions
diff --git a/blob-multiprocess/makefile b/blob-multiprocess/makefile
deleted file mode 100644
index 4a8cbaa..0000000
--- a/blob-multiprocess/makefile
+++ /dev/null
@@ -1,44 +0,0 @@
-DIR = /tmp/blobs
-PORT = 8000
-URI = http://127.0.0.1:8000/blobs/user
-UUID = $(shell uuidgen)
-PROCS ?= 4
-
-all: multiproc
-
-server: killall
- python blobs-server.py $(DIR) $(PORT)
-
-multiproc:
- python multiproc.py --procs $(PROCS)
-
-roundrobin: killall
- /usr/sbin/haproxy -D -f haproxy/roundrobin-$(PROCS).cfg
-
-killall:
- -killall -9 haproxy
-
-data:
- dd if=/dev/urandom of=/tmp/data bs=1024 count=100
-
-list:
- curl -X GET $(URI)/
-
-put:
- curl -X PUT $(URI)/$(UUID) --data-binary @/tmp/data
-
-get:
- UUID=$(UUID); \
- curl -X PUT $(URI)/$${UUID} --data-binary @/tmp/data; \
- curl -X GET $(URI)/$${UUID} > /dev/null
-
-delete:
- UUID=$(UUID); \
- curl -X PUT $(URI)/$${UUID} --data-binary @/tmp/data; \
- curl -X DELETE $(URI)/$${UUID}
-
-put-ab:
- ab -c 10 -n 1000 -T /tmp/data $(URI)/$(UUID)
-
-
-.PHONY: server multiproc roundrobin killall