Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hosting of Clickhouse for Aspects #45

Open
felipemontoya opened this issue Sep 18, 2023 · 4 comments
Open

Hosting of Clickhouse for Aspects #45

felipemontoya opened this issue Sep 18, 2023 · 4 comments
Assignees

Comments

@felipemontoya
Copy link
Member

Following the interest there is in using Aspects I had a conversation with @Ian2012 who has worked on the aspects project for a while to understand what would be required to use Aspects in harmony projects.

Aspects builds on top of a series of different projects:

  • superset
  • clickhouse
  • vector
  • ralph
  • dbt
  • event routing backends

Now, in order to host an aspects install, the superset/vector/ralph/dbt and the lms with the event routing backends package are already well supported via a tutor plugin: https://github.com/openedx/tutor-contrib-aspects/.

The critical missing bit would be clickhouse. It is possible to install clickhouse inside of the k8s cluster by using the k8s template provided in the plugin. However so far we have found that clickhouse can be a heavy drain of resources and it caused instability at the complete cluster. I'm opening this ticket to track any work we do in supporting a more robust hosting of clickhouse as a workload or strategies for external hosting.

@bradenmacdonald
Copy link
Contributor

Do superset and clickhouse support multi-tenancy?

@felipemontoya
Copy link
Member Author

Clickhouse works as a database. You can have schemas and you can configure your superset/ralph/routing-backend to read/write to a particular schema.

Superset requires that you have at least one pod per namespace dedicated to superset.

You can configure therefore many instances of openedx, each in a namespace, each with its own superset pod. All of them using the same clickhouse installation.

I would not call that multi-tenancy in the way that I'm used to in the lms context, but multiple aspects installations are completely possible in a single k8s cluster sharing the clickhouse resource.

@Ian2012
Copy link
Contributor

Ian2012 commented Sep 20, 2024

We plan to add the ClickHouse Operator helm chart as a dependency (disabled by default) with examples of CRD representing production-ready ClickHouse clusters compatible with Aspects.

@Ian2012 Ian2012 self-assigned this Sep 20, 2024
@Ian2012
Copy link
Contributor

Ian2012 commented Nov 5, 2024

Current WIP: #90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants