chdb-io / chdb

chDB is an in-process OLAP SQL Engine 🚀 powered by ClickHouse
https://clickhouse.com/docs/en/chdb
Apache License 2.0
2.03k stars 72 forks source link

AWS Lambda compatibility #9

Closed lmangani closed 1 year ago

lmangani commented 1 year ago

PR_SET_NAME workaround

AWS Lambdas (and other virtualized platforms) lack of support for PR_SET_NAME causing a blocking exception. Pending an upstream PR or fix in ClickHouse, this patch allows this function to fail unharmed. The resulting executable has been tested on various platforms without drawbacks and discussed in clickhouse issue #29378

$ sed -i '/Cannot set thread name/c\' /ClickHouse/src/Common/setThreadName.cpp

AVX2 Support

AWS Lambdas (and other virtualized platforms) lack of support for AVX2 instructions and currently preventing execution. Instruction check fail. The CPU does not support AVX2 instruction set. Disabling AVX2 results in broader compatibility for the library. AFAIK ClickHouse itself is compiled without AVX2 support.

STRIP debug symbols

The library is not currently stripped resulting in 100+ Mb of excess and making it hard to use and test in smaller setups. 99% of end users will not benefit from debug symbols. Please consider stripping the public library 🙏

Changelog category (leave one):