Skip to content

Conversation

@Eshanatnight
Copy link
Contributor

@Eshanatnight Eshanatnight commented Jan 23, 2024

Fixes #617.

Description

Separate out the Ingestion and Querying functionality of the server based on either a cli option --mode or an environment variable P_MODE.

Using a custom middleware to filter out non-accessible endpoints.

Changes
  1. Update CLI to accept --mode flag.
  2. Configuring routes to properly filter out the endpoints based on the mode.
  3. Addition of middleware that properly filters out the endpoints.

This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

@nitisht nitisht merged commit 5ca9ecb into parseablehq:main Jan 29, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 29, 2024
@Eshanatnight Eshanatnight deleted the distributed branch January 30, 2024 07:36
@Eshanatnight Eshanatnight restored the distributed branch January 30, 2024 07:36
@Eshanatnight Eshanatnight deleted the distributed branch January 30, 2024 07:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: separate out ingestor and querier modes

2 participants