It takes well over 10 minutes to import the 10k whisky database with HA. Without HA it takes 2 seconds. I've got to be doing something horribly wrong. I have this config on three 5ghz servers which should be chewing this workload up :
services:
arcadedb:
image: arcadedata/arcadedb:26.3.2
container_name: arcadedb
hostname: ${SERVER_HOSTNAME}
restart: unless-stopped
ports:
- "2480:2480" # Studio / HTTP
- "2424:2424" # HA replication
volumes:
- ./databases:/home/arcadedb/databases
environment:
JAVA_OPTS: "${JAVA_OPTS}"
extra_hosts:
- "arcade-db-1:172.17.1.230"
- "arcade-db-2:172.17.1.231"
- "arcade-db-3:172.17.1.232"
logging:
driver: local
options:
max-size: "10m"
max-file: "5"
SERVER_HOSTNAME=arcade-db-1
JAVA_OPTS=-Darcadedb.ha.quorumTimeout=120000
-Darcadedb.ha.quorum=majority
-Darcadedb.server.rootPassword=xxxxxxxxxxx
-Darcadedb.server.mode=production
-Darcadedb.server.name=arcadedb-230
-Darcadedb.ha.enabled=true
-Darcadedb.ha.clusterName=xxxxxxxxxxx
-Darcadedb.ha.serverList=172.17.1.230:2424,172.17.1.231:2424,172.17.1.232:2424
-Darcadedb.ha.replicationIncomingHost=0.0.0.0
-Darcadedb.ha.serverRole=any
In production mode studio does not work, it 404s. So ran the import command line :
time curl -u root:xxxxxxxxxxx -X POST http://172.17.1.230:2480/api/v1/command/Whisky \
-H "Content-Type: application/json" \
-d '{"language":"sql","command":"IMPORT DATABASE https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/Whisky.gz"}'
{"error":"Error on transaction commit","detail":"Error on importing database -> Error on parsing source 'https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/Whisky.gz (compressed=true size=9594)' -> Error on importing OrientDB database -> Timeout waiting for quorum (2) to be reached for request 30","exception":"com.arcadedb.exception.CommandExecutionException"}
It takes well over 10 minutes to import the 10k whisky database with HA. Without HA it takes 2 seconds. I've got to be doing something horribly wrong. I have this config on three 5ghz servers which should be chewing this workload up :
In production mode studio does not work, it 404s. So ran the import command line :