version:
Community Edition 4.0.10
configuration:
#docker-compose.yml
version: ‘3.2’
services:
crate:
image: implustechnology/crate-ce:4.0.10
restart: always
hostname: prometheus-db-1
container_name: crate
network_mode: host
volumes:
- “/opt/data/crate:/data”
command:
- crate
- -Ccluster.name=cratecluster
- -Cnode.name=prometheus-db-1
- -Cnode.master=true
- -Cnode.data=true
- -Chttp.port=5201
- -Cpsql.port=5210
- -Ctransport.tcp.port=5202
- -Cnetwork.host=prometheus-db-1
- -Cdiscovery.seed_hosts=prometheus-db-2,prometheus-db-3
- -Ccluster.initial_master_nodes=prometheus-db-1,prometheus-db-2,prometheus-db-3
- -Cgateway.expected_nodes=3
- -Cgateway.recover_after_nodes=2
- -Chttp.cors.enabled=true
- -Chttp.cors.allow-origin="*"
- -Cgateway.recover_after_time=1m
environment:
- CRATE_HEAP_SIZE=2g
data size:
how to optimize data size?