Giter VIP home page Giter VIP logo

citus's Introduction

Citus [zfs]

improved ZFS performance, pg configure add:

  • --with-blocksize=32
  • --with-wal-blocksize=64

zfs setting

ZFS_POOL_NAME=data4
MOUNT_POINT_DIR=/mnt/data4

sudo zfs create $ZFS_POOL_NAME/pg_data -o mountpoint=$MOUNT_POINT_DIR/pg_data

sudo chmod 0750 $MOUNT_POINT_DIR/pg_data

sudo zfs set recordsize=128k $ZFS_POOL_NAME/pg_data
sudo zfs set compression=zstd $ZFS_POOL_NAME/pg_data
sudo zfs set atime=off $ZFS_POOL_NAME/pg_data
sudo zfs set xattr=sa $ZFS_POOL_NAME/pg_data
sudo zfs set logbias=latency $ZFS_POOL_NAME/pg_data
sudo zfs set redundant_metadata=most $ZFS_POOL_NAME/pg_data

postgres setting

# postgresql.conf
full_page_writes = off

build

citus:11.3.0-alpine

docker build -t postgres:15.2-alpine postgres15.2-alpine/
docker build -t citus:11.3.0-alpine  citus11.3.0-alpine/ --pull=false

citus:12.1.0-alpine

docker build -t postgres:16.0-alpine postgres16.0-alpine/
docker build -t citus:12.1.0-alpine  citus12.1.0-alpine/ --pull=false

push ghcr

export GITHUB_TOKEN=
export GITHUB_USER=zzir
export CITUS_TAG=citus:12.1.0-alpine

echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_USER --password-stdin
docker tag $CITUS_TAG ghcr.io/$GITHUB_USER/$CITUS_TAG
docker push ghcr.io/$GITHUB_USER/$CITUS_TAG

citus's People

Contributors

zzir avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.