DTR

Start DTR 

sudo docker start $(sudo docker ps -q -a -f name=dtr- )

 

collect the dtr-scanningstore container logs:

 

# docker container ls | grep dtr-scanningstore

Copy the container ID and paste it here:

# docker container logs CONTAINER_ID > scanningstore.txt

 

more dtrcheck.sh

# REPLICA_ID will be the replica ID for the current node.
# This command will start a RethinkDB client attached to the database on the current node.
# ENTRYPOINT [“node” “–no-deprecation” “/root/rethinkdb_eval.js”]
echo run the command below:
echo “r.db(‘rethinkdb’).table(‘table_status’)”
echo “.exit”

VER=v2.2.0

REPLICA_ID=$(sudo docker ps -lf name=’^/dtr-rethinkdb-.{12}$’ –format ‘{{.Names}}’ | cut -d- -f3)
sudo docker run -it –rm –net dtr-ol -v dtr-ca-$REPLICA_ID:/ca dtrd.yyy.com/shared/rethinkcli:$VER $REPLICA_ID

# rethinkdb Commands
#
#> r.db(‘dtr2’).table(‘events’).indexCreate(‘type_publishedAt’)
#{ created: 1 }
#> r.db(‘dtr2’).table(‘events’).indexCreate(‘actor_publishedAt’)
#{ created: 1 }
#> r.db(‘dtr2’).table(‘events’).indexCreate(‘type_actor_publishedAt’)
#{ created: 1 }
# r.db(‘rethinkdb’).table(‘table_status’)
#r.db(‘dtr2’).table(‘blob_repository’).reconfigure({shards: 1, replicas: 2})

 

Leave a comment