Everything ClickHouse with ChistaDATA Inc.

Shiv Iyer
Posted on April 6, 2022

Everything ClickHouse with ChistaDATA Inc.

I have been a full-time Open Source Database Systems Performance Engineer for the last two decades with deep interests in Database Systems Internals, Database Systems (Transaction Processing and ColumnStores) Operations Performance Troubleshooting/Optimization and Unix/Linux Performance Tuning.  I architected, built and operated a planet-scale Database Infrastructure for several large internet companies in North America, Europe, Asia Pacific and Southeast Asia from diversified domains like Digital Commerce, Ad. Tech. Platforms, CDN, Social Media Applications, FinTech, Wearables and Gaming Platforms. I started ChistaDATA Incin August 2021 with seed funding from Sequoia Capital India for providing 24*7 Consultative Support and Managed Services for ClickHouse (both on-premises and cloud).

☛ What is ClickHouse?

ClickHouse is an open source SQL dialect based ColumnStore built for performance and scalability. In ClickHouse data is logically organized as tables with rows and columns but physically stored in a columnar format, This makes SORT/SEARCH intensive Data Analytics operations optimal and reliable. The following are the most compelling reasons for considering ClickHouse:

  • Open Source, The ClickHouse project was released as open-source software under the Apache 2 license in June 2016
  • Linearly scalable – Vectorized Query Processing and Sharding
  • Compression – Per column compression codecs for storage efficiency and performance
  • Scale Horizontally – Support Replication for READ-WRITE splitting
  • Materialized View support for Aggregation and Roll-up queries
  • Flexible aggregation – Aggregate functions for partial data with approximated calculation (minimal data retrieval option). Random keys aggregation instead of all keys for higher accuracy using minimal resources.
  • Maximum availability and self-healing – Asynchronous multi-master replication with auto failover capabilities.
  • SQL based – ClickHouse supports SQL, JOINS, subqueries including FROM, IN, JOIN clauses; and scalar subqueries are allowed. Correlated subqueries are not allowed.

☛ Why do we recommend ClickHouse over many other columnar database systems?

  • Compact data storage – Ten billion UInt8-type values should exactly consume 10GB uncompressed to efficiently use the available CPU. Optimal storage even when uncompressed benefits performance and resource management. ClickHouse is built is store data efficiently without any garbage.
  • CPU efficient – Whenever possible, ClickHouse operations are dispatched on arrays, rather than on individual values. This is called “vectorized query execution,” and it helps lower the cost of actual data processing.
  • Data compression – ClickHouse supports two kinds of compression LZ4 and ZSTD. LZ4 is faster than ZSTD but the compression ratio is smaller.ZSTD is faster and compresses better than traditional Zlib but slower than LZ4.  We recommend customers LZ4 when I/O is fast enough so decompression speed will become a bottleneck. When using super ultra-fast disk subsystems you have an option to specify “none” compression. ZSTD is recommended when I/O is the bottleneck in queries with large range scans.
  • Can store data in disk – The columnar database systems like SAP HANA and Google PowerDrill can only work in the RAM.
  • Massively Parallel Processing – ClickHouse is capable of Massively Parallel Processing very large/complex SQL(s) optimally and cost-efficiently
  • Built for web-scale data analytics – ClickHouse supports sharding and distributed processing, This makes ClickHouse the most preferred columnar database system for web-scale. Each shard in ClickHouse can be a group of replicas addressing maximum reliability and fault tolerance.
  • ClickHouse support Primary Key – ClickHouse permits real-time data updates with a primary key (there will be no locking when adding data). Data is sorted incrementally using the merge tree to perform queries on the range of primary key values.
  • Built for statistical analysis and supporting partial aggregation – ClickHouse is a statistical query analysis-ready columnar database store supporting aggregate functions for approximated calculation of the number of various values, medians, and quantiles. ClickHouse supports aggregation for a limited number of random keys, instead of for all the keys. You can query on a part (sample) of data and generate approximate results reducing disk I/O operations considerably.
  • Supports SQL – ClickHouse supports SQL, Subqueries are supported in FROM, IN, and JOIN clauses, as well as scalar subqueries. Dependent subqueries are not supported.
  • Supports data replication – ClickHouse supports asynchronous multi-master and master-slave replication.

ChistaDATA for full-stack ClickHouse Optimization

We are a full-stack ClickHouse infrastructure operations Consulting, Support and Managed Services provider with core expertise in performance, scalability and data SRE. Based out of California, Our consulting and support engineering team operates out of San Francisco, Vancouver, London, Germany, Russia, Ukraine, Australia, Singapore and India to deliver 24*7 enterprise-class consultative support and managed services. We operate very closely with some of the largest and planet-scale internet properties like PayPal, Garmin, Honda cars IoT project, Viacom, National Geographic, Nike, Morgan Stanley, American Express Travel, VISA, Netflix, PRADA, Blue Dart, Carlsberg, Sony, Unilever etc.

☛ How ChistaDATA can help you in building a web-scale real-time streaming data analytics using ClickHouse?

  • Consulting – We are experts in building optimal, scalable (horizontally and vertically), highly available and fault-tolerant ClickHouse powered streaming data analytics platforms for planet-scale internet / mobile properties and the Internet of Things (IoT). Our elite-class consultants work very closely with your business and technology teams to build custom columnar database analytics solutions using ClickHouse.
  • Database Architect services – We architect, engineer and deploy data analytics platforms for you. We will take care of your data analytics ecosystem so that you can focus on business.
  • ClickHouse Enterprise Support – We have 24*7 enterprise-class support available for ClickHouse, Our support team will review and deliver guidance for your data analytics platforms architecture, SQL engineering, performance optimization, scalability, high availability and reliability.
  • ClickHouse Training.
  • Pay only for hours we have worked for you, This makes us affordable for startups and large corporations equally.

☛ ClickHouse Consulting Plans (we do both on-site and remote ClickHouse consulting)

If you are building a web-scale columnar database systems analytics and your business demands on-site ClickHouse consultants, We are available on short notice. We work very closely with your team on-site guiding them both strategically and technically on building optimal, scalable and highly available ClickHouse database infrastructure operations.

[table id=1 /]

We can do almost everything remote on ClickHouse, This includes performance, scalability and high availability. Our technical account manager will be working very closely with your team to understand the goals and build short/long-term deliverables managing MinervaDB ClickHouse Consultants.

[table id=2 /]

If you are a startup, We have flexible ClickHouse Managed Services options available:

[table id=3 /]

☛ ClickHouse Enterprise Support (24*7)

You get access to our seasoned ClickHouse support team 24*7 for a fraction of the cost to hiring a full-time Sr. level ClickHouse consultant. We will help you in building a planet-scale data analytics platform using ClickHouse which is optimal, scalable and highly available.

  • Enterprise-Class ClickHouse Support
    • Technical Account Manager to clearly understand your business goals and orchestrate our support operations.
    • 30 Minute Response Time on Severity 1 (Urgent) Issues.
    • 10 Named Customer Contacts.
    • Support channels – Phone, Email, Slack, Skype, Google Hangouts and Phone.
    • Technical support — 30 minute response time (S1)
      • Support -levels – We have a very well defined support infrastructure operations function:
        • Severity 1– Immediate attention is needed, The customer’s business is severely impacted and database infrastructure is unavailable.
          • Response time (SLA) – 30 minutes.
        • Severity 2– Customer database infrastructure is available (up and running) but performance/scalability issues are directly impacting business.
          • Response time (SLA) – 12 hours. 
        • Severity 3– Low impact situation, Customer business and production infrastructure is functioning normally, but the problem is impacting the development ecosystems, also causing a delay in production deployment.
          • Response time (SLA) – 24 hours.
        • Severity 4– Low to no impact situation, It is more about knowing the features and capability of components before considering the adoption.
          • Response time (SLA) – 48 hours. 
  • DBA Support
    • Recommendations for database architecture and design.
    • Recommendations for optimal SQL engineering.
    • Recommendations for ClickHouse Performance optimization and tuning.
    • Recommendation for index design, optimization and usage.
    • Recommendations for ClickHouse backup and disaster recovery.
    • Recommendations for ClickHouse high availability and auto-failover.
    • Recommendations for ClickHouse data archiving and partitioning.
    • Recommendations for ClickHouse maintenance operations.

[table id=4 /]

☛How ChistaDATA Can Help you in building high performance ClickHouse applications?

ChistaDATA is committed to building optimal, scalable and highly reliable ClickHouse applications to maximize your Return on Investments (RoI) from your Database Infrastructure and Analytics Platforms. For more information on our ClickHouse Consultative Support and Managed Services, contact us at (844)395-5717 or info@chistadata.com