Skip to content

Instantly share code, notes, and snippets.

@clayg
Last active January 8, 2020 15:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/27c6a7929518b5a9949b1bf916703534 to your computer and use it in GitHub Desktop.
Save clayg/27c6a7929518b5a9949b1bf916703534 to your computer and use it in GitHub Desktop.
vagrant@saio:~$ curl -w "%{time_total}|%{speed_upload}" -X POST "http://127.0.0.1:8090" -T file_200.txt
(8950) accepted ('127.0.0.1', 46762)
/srv/node1/sdb1/objects/59
os write time is - 1.09243893623
fsync time is - 0.254086017609
127.0.0.1 - - [08/Jan/2020 15:02:40] "POST /file_200.txt HTTP/1.1" 200 218 1.348623
The Begining
******************************
3566de3a97906edb98d004d6b947ae9b
******************************
The End1.352923|155114792.000vagrant@saio:~$
vagrant@saio:~$
vagrant@saio:~$ curl -w "%{time_total}|%{speed_upload}" http://127.0.0.1:6010/sdb1/1/a/c/file_200_.text -X PUT -H 'Content-Type: binary/octet-stream' -H "x-timestamp: $(python -c 'from swift.common.utils import Timestamp; print(Timestamp.now().internal)')" -T file_200.txt
1.454034|144233287.000vagrant@saio:~$
# etags seems to match:
vagrant@saio:~$ curl http://127.0.0.1:6010/sdb1/1/a/c/file_200_.text -I
HTTP/1.1 200 OK
Content-Length: 209715200
X-Backend-Timestamp: 1578495771.79844
Last-Modified: Wed, 08 Jan 2020 15:02:52 GMT
Etag: "3566de3a97906edb98d004d6b947ae9b"
X-Timestamp: 1578495771.79844
X-Backend-Data-Timestamp: 1578495771.79844
X-Backend-Durable-Timestamp: 1578495771.79844
Content-Type: binary/octet-stream
Date: Wed, 08 Jan 2020 15:04:18 GMT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment