GeezerVison is showing github.com — Import Database issues with HA · Issue #3887 · ArcadeData/arcadedb
Import Database issues with HA #3887
Description
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"}
Activity
lvca commented on Apr 22, 2026
We just merged the new HA module and I'm going to test this use case. One thing we noticed, synchronous operations, by default, waits for the majority quorum. With 3 nodes it's 2 nodes. So each transactions pays the latency of waiting for confirmation. This is the worst scenario for massive insertion in cluster.
Much better using the async api that should allow thousands ops/sec.
I'll run some test
lvca commented on Apr 22, 2026
Just tested a similar database in the same format (OrientDB) and with 3 nodes takes a few seconds.
Pull the latest version, main branch and try running RaftImportOrientDB3NodesIT.java.
So the new HA architecture is much faster.
Metadata
Metadata
Development
No branches or pull requestsIssue actions