Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6bdee02 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffcaseyyet committed Sep 17, 2024
1 parent e590b00 commit f1ddb53
Show file tree
Hide file tree
Showing 19 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion authority.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion aws.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
</div>
<p><a href='index.html'><- Back to Index</a></p><h1 id="developer&#95;documentation">Developer Documentation</h1><p>The SQL LRS is a Clojure Web Application built on the Pedestal Framework.</p><h3 id="build">Build</h3><p>The SQL LRS can be built or run with the following Makefile targets. They can be executed with <code>make &#91;target&#93;</code>.</p><h4 id="build&#95;and&#95;test&#95;targets">Build and Test Targets</h4><table><thead><tr><th>Target</th><th>Description</th></tr></thead><tbody><tr><td><code>ci</code></td><td>Called when running continuous integration; runs all test cases in all SQL flavors.</td></tr><tr><td><code>test-sqlite</code></td><td>Run all tests with SQLite database.</td></tr><tr><td><code>test-postgres</code></td><td>Run all tests with Postgres database version 11. Set the <code>LRSQL&#95;TEST&#95;DB&#95;VERSION</code> env var to a valid Postgres docker tag to use another version.</td></tr><tr><td><code>test-postgres-11</code></td><td>Run all tests with Postgres database version 11.</td></tr><tr><td><code>test-postgres-12</code></td><td>Run all tests with Postgres database version 12.</td></tr><tr><td><code>test-postgres-13</code></td><td>Run all tests with Postgres database version 13.</td></tr><tr><td><code>test-postgres-14</code></td><td>Run all tests with Postgres database version 14.</td></tr><tr><td><code>test-postgres-15</code></td><td>Run all tests with Postgres database version 15.</td></tr><tr><td><code>bundle</code></td><td>Build a complete distribution of the SQL LRS including the user interface and native runtimes for multiple operating systems.</td></tr><tr><td><code>bench</code></td><td>Run a load test and benchmark performance, returning performance metrics on predefined test data. Requires a running SQL LRS instance to test against. This test sends requests synchronously on one thread.</td></tr><tr><td><code>bench-async</code></td><td>Same as <code>bench</code> but it runs with concurrent requests on multiple threads.</td></tr><tr><td><code>check-vuln</code></td><td>Run the <a href='https://github.com/rm-hull/nvd-clojure'>nvd-clojure</a> tool, which checks for vulnerabilities against the <a href='https://nvd.nist.gov/'>National Vulnerability Database</a>.</td></tr></tbody></table><h4 id="run&#95;targets">Run Targets</h4><table><thead><tr><th>Target</th><th>Description</th></tr></thead><tbody><tr><td><code>ephemeral</code></td><td>Start an in-memory SQL LRS based on SQLite DB.</td></tr><tr><td><code>ephemeral-prod</code></td><td>Similar to <code>ephemeral</code>, except that the <code>:prod</code> profile is used, enabling the use of environment variables without full compilation.</td></tr><tr><td><code>sqlite</code></td><td>Start a SQLite-based SQL LRS.</td></tr><tr><td><code>postgres</code></td><td>Start a Postgres SQL LRS. Requires a running Postgres instance.</td></tr><tr><td><code>run-jar-sqlite</code></td><td>Similar to <code>sqlite</code> but it runs the finished Jar instead of directly from Clojure. Runs with a predefined default set of env variables.</td></tr><tr><td><code>run-jar-sqlite-ephemeral</code></td><td>Similar to <code>ephemeral</code> but it runs the finished Jar instead of directly from Clojure. Runs with a predefined default set of env variables.</td></tr><tr><td><code>run-jar-postgres</code></td><td>Similar to <code>postgres</code> but it runs the finished Jar instead of directly from Clojure. Runs with a predefined default set of env variables.</td></tr></tbody></table><h4 id="cleanup&#95;targets">Cleanup Targets</h4><table><thead><tr><th>Target</th><th>Description</th></tr></thead><tbody><tr><td><code>clean</code></td><td>Removes all build artifacts.</td></tr><tr><td><code>clean-non-dl</code></td><td>Same as <code>clean</code> except that it does not delete downloaded folders.</td></tr><tr><td><code>clean-dev</code></td><td>Removes development files.</td></tr><tr><td><code>clean-exe</code></td><td>Removes the finished Windows executables, allowing recreation.</td></tr></tbody></table><h3 id="benchmarking">Benchmarking</h3><p>You can customize and run benchmarks for SQL LRS (or any conformant LRS, though the benchmarking framework was designed for SQL LRS). The benchmarking framework will insert auto-generated Statements into a running SQL LRS instance, then querying them and recording query time statistics.</p><h4 id="1.&#95;set&#95;up&#95;insertion&#95;inputs">1. Set up insertion inputs</h4><p>This step can be skipped if your DB already has Statements stored and you are only running queries.</p><p>The insertion input file is a JSON file that follows the <a href='https://github.com/yetanalytics/datasim'>DATASIM</a> input format. The benchmarking framework uses DATASIM to generate a Statement sequence from that input file. See the <a href='https://github.com/yetanalytics/datasim#usage'>DATASIM documentation</a> for more information about the proper input format.</p><h4 id="2.&#95;set&#95;up&#95;query&#95;inputs">2. Set up query inputs</h4><p>The query input file is a JSON file containing an array of Statement query parameter objects. The following is an example query input:</p><pre><code class="json">&#91;{}, { &quot;verb&quot;: &quot;https://w3id.org/xapi/video/verbs/seeked&quot; }&#93;
</code></pre><p>See the <a href='https://github.com/adlnet/xAPI-Spec/blob/master/xAPI-Communication.md#213-get-statements'>Statement resource documentation</a> for a full list of query parameters.</p><h4 id="3.&#95;start&#95;an&#95;lrs&#95;instance">3. Start an LRS instance</h4><p>Start an instance of the SQL LRS (or any conformant LRS). The above Makefile targets provide a convenient way of doing so.</p><h4 id="4.&#95;run&#95;the&#95;benchmarks">4. Run the benchmarks</h4><p>In another terminal, run the benchmarking framework by calling:</p><pre><code>clojure -M:bench -m lrsql.bench &#91;arguments&#93;
</code></pre><p>The following is the full list of arguments (which can also be accessed by passing the <code>--help</code> argument):</p><table><thead><tr><th>Argument</th><th>Value</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>-e</code>, <code>--lrs-endpoint</code></td><td>URI</td><td><details><code>http://0.0.0.0:8080/xapi/statements</code><summary>(URI)</summary></details></td><td>The HTTP(S) endpoint of the (SQL) LRS webserver for Statement POSTs and GETs.</td></tr><tr><td><code>-i</code>, <code>--insert-input</code></td><td>Filepath</td><td>None</td><td>The location of a JSON file containing a DATASIM input spec. If given, this input is used to insert statements into the DB.</td></tr><tr><td><code>-s</code>, <code>--input-size</code></td><td>Integer</td><td><code>1000</code></td><td>The total number of statements to insert. Ignored if <code>-i</code> is not given.</td></tr><tr><td><code>-b</code>, <code>--batch-size</code></td><td>Integer</td><td><code>10</code></td><td>The batch size to use for inserting statements. Ignored if <code>-i</code> is not given.</td></tr><tr><td><code>-a</code>, <code>--async?</code></td><td>Boolean</td><td><code>false</code></td><td>Whether to insert asynchronously or not.</td></tr><tr><td><code>-c</code>, <code>--concurrency</code></td><td>Integer</td><td><code>10</code></td><td>The number of parallel threads to run during statement insertion and querying. Ignored if <code>-a</code> is <code>false</code>.</td></tr><tr><td><code>-r</code>, <code>--statement-refs</code></td><td>Keyword</td><td><code>none</code></td><td>How Statement References should be generated and inserted. Valid options are <code>none</code> (no Statement References), <code>half</code> (half of the Statements have StatementRef objects), and <code>all</code> (all Statements have StatementRef objects).</td></tr><tr><td><code>-q</code>, <code>--query-input</code></td><td>Filepath</td><td>None</td><td>The location of a JSON file containing an array of statement query params. If not given, the benchmark does a single query with no params.</td></tr><tr><td><code>-n</code>, <code>--query-number</code></td><td>Integer</td><td><code>30</code></td><td>The number of times each query is performed.</td></tr><tr><td><code>-u</code>, <code>--user</code></td><td>String</td><td>None</td><td>HTTP Basic Auth user.</td></tr><tr><td><code>-p</code>, <code>--pass</code></td><td>String</td><td>None</td><td>HTTP Basic Auth password.</td></tr><tr><td><code>-h</code>, <code>--help</code></td><td>No args</td><td>None</td><td>Help menu.</td></tr></tbody></table><h4 id="5.&#95;wait&#95;for&#95;results">5. Wait for results</h4><p>After the bench has run, you should see results that look something like this:</p><pre><code>&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42; Query benchmark results for n = 30 &#40;in ms&#41; &#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;
</code></pre><p>The following is the full list of arguments (which can also be accessed by passing the <code>--help</code> argument):</p><table><thead><tr><th>Argument</th><th>Value</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>-e</code>, <code>--lrs-endpoint</code></td><td>URI</td><td><details><code>http://0.0.0.0:8080/xapi/statements</code><summary>(URI)</summary></details></td><td>The HTTP(S) endpoint of the (SQL) LRS webserver for Statement POSTs and GETs.</td></tr><tr><td><code>-i</code>, <code>--insert-input</code></td><td>Filepath</td><td>None</td><td>The location of a JSON file containing a DATASIM input spec. If present, this input is used to insert statements into the DB.</td></tr><tr><td><code>-s</code>, <code>--input-size</code></td><td>Integer</td><td><code>1000</code></td><td>The total number of statements to insert. Ignored if <code>-i</code> is not present.</td></tr><tr><td><code>-b</code>, <code>--batch-size</code></td><td>Integer</td><td><code>10</code></td><td>The batch size to use for inserting statements. Ignored if <code>-i</code> is not present.</td></tr><tr><td><code>-a</code>, <code>--async</code></td><td>No args</td><td>N/A</td><td>If provided, insert statements asynchronously.</td></tr><tr><td><code>-c</code>, <code>--concurrency</code></td><td>Integer</td><td><code>10</code></td><td>The number of parallel threads to run during statement insertion and querying. Ignored if <code>-a</code> is not present.</td></tr><tr><td><code>-r</code>, <code>--statement-refs</code></td><td>Keyword</td><td><code>none</code></td><td>How Statement References should be generated and inserted. Valid options are <code>none</code> (no Statement References), <code>half</code> (half of the Statements have StatementRef objects), and <code>all</code> (all Statements have StatementRef objects).</td></tr><tr><td><code>-q</code>, <code>--query-input</code></td><td>Filepath</td><td>None</td><td>The location of a JSON file containing an array of statement query params. If not present, the benchmark does a single query with no params.</td></tr><tr><td><code>-n</code>, <code>--query-number</code></td><td>Integer</td><td><code>30</code></td><td>The number of times each query is performed.</td></tr><tr><td><code>-u</code>, <code>--user</code></td><td>String</td><td>None</td><td>HTTP Basic Auth user.</td></tr><tr><td><code>-p</code>, <code>--pass</code></td><td>String</td><td>None</td><td>HTTP Basic Auth password.</td></tr><tr><td><code>-h</code>, <code>--help</code></td><td>No args</td><td>N/A</td><td>Help menu.</td></tr></tbody></table><h4 id="5.&#95;wait&#95;for&#95;results">5. Wait for results</h4><p>After the bench has run, you should see results that look something like this:</p><pre><code>&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42; Query benchmark results for n = 30 &#40;in ms&#41; &#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;&#42;

| :query | :mean | :sd | :max | :min | :total |
|-----------------------------------------------------+-------+-----+------+------+--------|
Expand All @@ -138,7 +138,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion docker.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion endpoints.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion env_vars.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion general_faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion https.html
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h1 id="documentation&#95;index">Documentation Index</h1><p><!&ndash; When you a
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion oidc.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion oidc/auth0.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion postgres.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
2 changes: 1 addition & 1 deletion postman.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
&copy; 2021-2024 <a href="https://www.yetanalytics.com" target="_blank">Yet Analytics Inc.</a> |
<a href="https://github.com/yetanalytics/lrsql/blob/main/LICENSE" target="_blank">Licensed under the Apache 2.0 License</a> |
Contribute on <a href="https://github.com/yetanalytics/lrsql" target="_blank">GitHub</a>
<span class="build">Build: 5c5739f075a4eb493cb47b6877c25ebd49139967</span>
<span class="build">Build: 6bdee027a58770de612343df04b08177a690e52d</span>
</div>
</div>
</body>
Expand Down
Loading

0 comments on commit f1ddb53

Please sign in to comment.