-
Notifications
You must be signed in to change notification settings - Fork 368
4146 add troubleshooting section #4181
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
base: main
Are you sure you want to change the base?
Conversation
…into 4146-add-troubleshooting-section
…into 4146-add-troubleshooting-section
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
@dhtclk LGTM, just two small things to change: ![]() Could we make it just a single menu item rather than a dropdown? I think the expanding tab is only necessary if we have more than one page. If we're adding here we should probably add it as an item in the top menu: ![]() |
…into 4146-add-troubleshooting-section
…into 4146-add-troubleshooting-section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get this in soon, just a few small changes to make - see comments.
- [Session memory settings](/docs/operations/settings/settings) | ||
<br/> | ||
### Scaling and sizing: {#scaling-and-sizing} | ||
- [Right-size your service](/docs/operations/tips) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an idea, but some of these like this one are only really applicable to OSS ClickHouse. Maybe we should mark them with a ⛁ vs ☁️ if they are specific
@kellytoole I know you also said you wanted to take a look at this. There's a first draft of the "lessons learned" doc in this PR along with the troubleshooting section. |
…into 4146-add-troubleshooting-section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved from my side with assumption you'll fix all the sentence casing issues (I did most for you, you can batch commit and fix the rest), and some small formatting things.
Let's merge if Lio/Tom/Dale are happy
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Batch of 20 Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
Co-authored-by: Shaun Struwig <[email protected]>
…/ClickHouse/clickhouse-docs into 4146-add-troubleshooting-section
- SQL flexibility enabled complex rate limiting rules beyond simple counters | ||
- Leveraged existing data pipeline instead of requiring separate infrastructure | ||
|
||
## ClickHouse for customer analytics {#customer-analytics} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really a creative use case? It looks like standard RTA to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, maybe not. This may be an example of my limited experience with ClickHouse thus far. We could either reframe/re-title the document to something like Customer Success Stories vs Creative Use-cases, or I can find a different example.
- Customers could create their own segments and slice data freely | ||
- No more engineering bottlenecks for new analytical requirements | ||
|
||
```sql runnable editable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a wider issue, but I noticed the scroll stop working when hovering the code editor.
|
||
In Microsoft's web analytics system, search results trigger different types of answers - weather cards, sports information, news articles, and factual responses. Each query result was tagged with descriptive strings like "weather_answer," "sports_answer," or "factual_answer." With billions of search queries processed, these string values were being stored repeatedly in ClickHouse, consuming massive amounts of storage space and requiring expensive string comparisons during queries. | ||
|
||
Microsoft implemented a string-to-integer mapping system using a separate MySQL database. Instead of storing the actual strings in ClickHouse, they store only integer IDs. When users run queries through the UI and request data for `weather_answer`, their query optimizer first consults the MySQL mapping table to get the corresponding integer ID, then converts the query to use that integer before sending it to ClickHouse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the mapping solution could be implemented using a Dictionary here instead of MySQL. I understand we want to share the story as-is from the customer, but maybe we could suggest "better" solution if exists in ClickHouse.
|
||
## Partition-based data management {#partition-management} | ||
|
||
Microsoft Clarity discovered that partitioning strategy impacts both performance and operational simplicity. Their approach: partition by date, order by hour. This strategy delivers multiple benefits beyond just cleanup efficiency—it enables trivial data cleanup, simplifies billing calculations for their customer-facing service, and supports GDPR compliance requirements for row-based deletion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Link to resources on how to manage partitions in ClickHouse
|
||
Instead of looking at average performance, identify specific query patterns that cause problems: | ||
|
||
```sql runnable editable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What am I suppose to achieve? Faster query? Less resource used?
|
||
**Universal pain point:** Small frequent inserts create performance degradation through part explosion. | ||
|
||
## Recognize the Problem Early {#recognize-parts-problem} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provide context on how to use this query
<details> | ||
<summary><strong>Show performance and error solutions</strong></summary> | ||
|
||
### Query performance {#query-performance} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
color issue on light theme
description: 'Find solutions to the most common ClickHouse problems including slow queries, memory errors, connection issues, and configuration problems.' | ||
--- | ||
|
||
# Troubleshooting Common Issues {#troubleshooting-common-issues} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great resource page. Why is it under Community wisdom section?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was placed here as a sort of a catch all for tips and tricks, can definitely look into moving it. I'm hoping with search improvements and such users will find it via that or contextual navigation vs navigating the tree.
…oat from community wisdom.
Summary
Adding a troubleshooting page to create a space for useful links based on support data. Hopefully boosting discoverability of some existing quality docs and kb articles.