检查您的 CPU 是否支持 SIMD 功能。
OpenObserve 支持在 Intel CPU 上使用 AVX512 或在 Arm CPU 上使用 NEON 进行 SIMD。
要检查您的 CPU 是否支持这些功能:
#!/bin/bash
# use lscpu get cpu features
cpu_flags=$(lscpu | grep -oP 'Flags:\s+\K(.*)')
# check supports simd features
if echo "$cpu_flags" | grep -qie "(avx512|neon)"; then
echo "Your CPU supports AVX512 or NEON, you can use simd version."
echo "docker image tag:"
echo "public.ecr.aws/zinclabs/openobserve:latest-simd"
else
echo "Your CPU doesn't support AVX512 or NEON, you should use common version."
echo "docker image tag:"
echo "public.ecr.aws/zinclabs/openobserve:latest"
fi