Skip to content
24 changes: 18 additions & 6 deletions assets/clp/methodology.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@
# CLP methodology

**Version:** [0.4.0](https://github.com/y-scope/clp/releases/tag/v0.4.0)
**Version:** [clp-0.5.1]

**File with Formatted Queries:** [Config File](/assets/clp/config.yaml)
**File with Formatted Queries:** [Config File]

## Setup

The benchmark builds on the public [**CLP core Ubuntu-Jammy**](http://ghcr.io/y-scope/clp/clp-core-dependencies-x86-ubuntu-jammy) docker image.
The benchmark builds on the public [CLP core Ubuntu-Jammy] docker image.

We use the clp-s binary, which is a variant of CLP optimized for semi-structured logs like JSON. We run clp-s with a target encoded size of 256MB, balancing compression ratio with search speed. Increasing the target encoded size can yield even better compression. Additional tuning options are documented in the user guide, [here.](https://docs.yscope.com/clp/v0.4.0/user-guide/core-clp-s)
We use the clp-s binary, which is a variant of CLP optimized for semi-structured logs like JSON. We
run clp-s with a target encoded size of 256MB, balancing compression ratio with search speed.
Increasing the target encoded size can yield even better compression. Additional tuning options are
documented in the [user guide].

There is no need to launch clp-s, once built it can just be called on the command line and will be just shut down when it’s completed its command execution. The only thing we do before calling clp-s is to make a directory for its output files. We provide this as one of the parameters to the ingestion and search commands.
There is no need to launch clp-s, once built it can just be called on the command line and will be
just shut down when it’s completed its command execution. The only thing we do before calling clp-s
is to make a directory for its output files. We provide this as one of the parameters to the
ingestion and search commands.

CLP doesn’t maintain any internal caches for us to clear, so before each query we flush the file system buffers and clear the filesystem caches.
CLP doesn’t maintain any internal caches for us to clear, so before each query we flush the file
system buffers and clear the filesystem caches.

[CLP core Ubuntu-Jammy]: http://ghcr.io/y-scope/clp/clp-core-dependencies-x86-ubuntu-jammy
[clp-0.5.1]: https://github.com/y-scope/clp/releases/tag/v0.5.1
[Config File]: /assets/clp/config.yaml
[user guide]: https://docs.yscope.com/clp/v0.5.1/user-docs/core-clp-s.html