KeyValueStoreMemory_OutOfSpace
Foundationdb can't get or set,And error is KeyValueStoreMemory_OutOfSpace ,But the memory is not full yet.
status below:
Configuration:
Redundancy mode - double
Storage engine - memory
Coordinators - 3
Cluster:
FoundationDB processes - 5 (less 0 excluded; 2 with errors)
Machines - 5
Memory availability - 15.1 GB per process on machine with least available
Retransmissions rate - 0 Hz
Fault Tolerance - 1 machine
Server time - 05/14/18 18:00:46
Data:
Replication health - Healthy (Repartitioning.)
Moving data - 0.176 GB
Sum of key-value sizes - 577 MB
Disk space used - 6.114 GB
Operating space:
Storage server - 61.0 GB free on most full server
Log server - 61.1 GB free on most full server
Workload:
Read rate - 3 Hz
Write rate - 4001 Hz
Transactions started - 4 Hz
Transactions committed - 2 Hz
Conflict rate - 0 Hz
Performance limited by process: Storage server performance (storage queue).
Most limiting process: 10.215.65.23:8080
Backup and DR:
Running backups - 0
Running DRs - 0
Process performance details:
10.215.65.21:8080 ( 4% cpu; 1% machine; 0.000 Gbps; 0% disk IO; 1.8 GB / 15.1 GB RAM )
10.215.65.22:8080 ( 6% cpu; 2% machine; 0.001 Gbps; 0% disk IO; 2.2 GB / 15.3 GB RAM )
Last logged error: KeyValueStoreMemory_OutOfSpace at Mon May 14 17:51:24 2018
10.215.65.23:8080 ( 3% cpu; 1% machine; 0.002 Gbps; 0% disk IO; 2.2 GB / 15.3 GB RAM )
Last logged error: KeyValueStoreMemory_OutOfSpace at Mon May 14 17:51:27 2018
10.215.65.25:8080 ( 3% cpu; 1% machine; 0.003 Gbps; 0% disk IO; 2.0 GB / 15.3 GB RAM )
10.215.65.26:8080 ( 3% cpu; 1% machine; 0.000 Gbps; 0% disk IO; 1.8 GB / 15.2 GB RAM )
Coordination servers:
10.215.65.21:8080 (reachable)
10.215.65.22:8080 (reachable)
10.215.65.23:8080 (reachable)
Client time: 05/14/18 18:00:38
For future reference, posts or questions without specific prescribed changes should be made to the community forums. See our contribution guide for more details.
The memory storage engine allocates a certain amount of memory per process for storing keys and values (by default, this is 1GB). This space needs to hold all of your data, including replication and overhead, and once it runs out the database will stop accepting writes. It's supposed to also start slowing down as it gets full and try to prevent itself from completely filling up, but due to a bug (fixed in 5.2) I think this may not be working. Once you have the bug fix, you should also see the operating space section more accurately reflect how much space is available in the memory storage engine.
If you want to continue using the memory storage engine but need more space, you can increase the amount of memory your processes are willing to use for data storage by adjusting the storage_memory parameter in foundationdb.conf. Note that you may also need to adjust the memory parameter as well, which is the total memory a process is willing to use, if you increase storage_memory by very much.
The other option to obtain more space is to switch to the ssd storage engine, which can use as much space as you have available on disk. To do so, you would run configure ssd in fdbcli. If that command doesn't work, you may need to get the cluster unstuck by increasing the storage_memory parameter first.
@ajbeamon thanks