Hi,
I develop a setup for Kubernetes ( https://github.com/Chr1st0ph/foundationdb-kubernetes ).
I run a statefulset with 2 pods ( each having two processes, port 4500 and port 4501 respectively; see https://github.com/Chr1st0ph/foundationdb-docker/blob/master/foundationdb.conf ).
I got the following issue:
I connect to one pod using fdbcli ( kubectl exec -it foundationdb-0 fdbcli )
and there is a welcome message:
"
Using cluster file `/etc/foundationdb/fdb.cluster’.
The database is available, but has issues (type ‘status’ for more information).
…
"
…
fdb> writemode on
fdb> set test testvalue
Committed (1024780968)
fdb> get test
WARNING: Long delay (Ctrl-C to interrupt)
…
fdb> status
Using cluster file `/etc/foundationdb/fdb.cluster’.
Configuration:
Redundancy mode - single
Storage engine - memory
Coordinators - 1
Cluster:
FoundationDB processes - 3
Machines - 2
Memory availability - 4.8 GB per process on machine with least available
Fault Tolerance - 0 machines
Server time - 05/09/18 10:14:09
Data:
Replication health - unknown
Moving data - unknown
Sum of key-value sizes - unknown
Disk space used - 1 MB
Operating space:
Log server - 15.2 GB free on most full server
Workload:
Read rate - 0 Hz
Write rate - 0 Hz
Transactions started - 4 Hz
Transactions committed - 0 Hz
Conflict rate - 0 Hz
Backup and DR:
Running backups - 0
Running DRs - 0
Client time: 05/09/18 10:14:09
…
fdb> status details
Using cluster file `/etc/foundationdb/fdb.cluster’.
Configuration:
Redundancy mode - single
Storage engine - memory
Coordinators - 1
Cluster:
FoundationDB processes - 3
Machines - 2
Memory availability - 4.8 GB per process on machine with least available
Fault Tolerance - 0 machines
Server time - 05/09/18 10:01:55
Data:
Replication health - unknown
Moving data - unknown
Sum of key-value sizes - unknown
Disk space used - 1 MB
Operating space:
Log server - 15.3 GB free on most full server
Workload:
Read rate - 0 Hz
Write rate - 0 Hz
Transactions started - 2 Hz
Transactions committed - 0 Hz
Conflict rate - 0 Hz
Backup and DR:
Running backups - 0
Running DRs - 0
Process performance details:
172.17.0.4:4501 ( 1% cpu; 2% machine; 0.000 Gbps; 0% disk IO; 0.4 GB / 9.3 GB RAM )
172.17.0.5:4500 ( 1% cpu; 2% machine; 0.000 Gbps; 0% disk IO; 0.4 GB / 4.8 GB RAM )
172.17.0.5:4501 ( 2% cpu; 2% machine; 0.000 Gbps; 0% disk IO; 0.4 GB / 4.8 GB RAM )
Coordination servers:
172.17.0.4:4500 (reachable)
Client time: 05/09/18 10:01:54
…
kubectl exec -it foundationdb-0 – cat /etc/foundationdb/fdb.cluster
Eu6Qm2zv:PV3XWcSL@172.17.0.4:4500
kubectl exec -it foundationdb-1 – cat /etc/foundationdb/fdb.cluster
Eu6Qm2zv:PV3XWcSL@172.17.0.4:4500
…
I do not understand what is the reason for the issue . Coordinator is existing and reachable.
I also do not understand why 172.17.0.4:4500 does not appear in “Process performance details:”
( same as in How are ‘contributing_workers’ computed? ). That is the reason why I start two processes per pod (at the moment).
Thanks for your time and efforts in advance
Christoph