Skip to content

Commit 5c2dd4a

Browse files
authored
Document how to use fbench with tokens (#4661)
1 parent e21536a commit 5c2dd4a

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

en/performance/benchmarking-cloud.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,20 @@ <h2 id="set-up-a-performance-test-instance">Set up a performance test instance</
5454
<p>At this point, the instance is ready, with data, and can be queried using data-plane credentials.</p>
5555

5656

57+
<h2 id="test-using-vespa-fbench-with-a-token-endpoint">Test using vespa-fbench with a token endpoint</h2>
58+
59+
<p>To test using an API token endpoint instead of mTLS, use these options:</p>
60+
61+
<pre>
62+
$ vespa-fbench -q query.txt -s 5 -H "Authorization: Bearer [your token]" -T /etc/ssl/certs/ca-bundle.crt -o out.txt "[token-endpoint]" 443
63+
</pre>
64+
65+
<p>ca-bundle.crt is just the root certificates, nothing Vespa specific.</p>
66+
5767

5868
<h2 id="test-using-vespa-fbench">Test using vespa-fbench</h2>
59-
<p>The rest of the guide assumes the data-plane credentials are in working directory:</p>
69+
70+
<p>The rest of the guide assumes we're using an mTLS endpoint and have data-plane credentials are in working directory:</p>
6071
<pre>
6172
$ ls -1 *.pem
6273
data-plane-private-key.pem

0 commit comments

Comments
 (0)