Can too many write connections cause writes to fail?

v21.03

As the title

After writing about 20G of data to dgraph, writing data often causes alpha to restart.

Queries are also slow and often fail.

One alpha (3 alphas in total) is also dropped and cannot be successfully started

Will the normal hard disk have this problem of writing failure after there is too much data?

你这应该不是写入导致的失败,是你写入过程用到了upsert吧

是的,写入用的upsert,我想让数据库里面只有一份数据

upsert用到了查询,建议你先执行下查询的调试,是否较快;慢查询会很吃内存的,从而多了会导致oom;
再就是upsert 可以加分页,尽量保证在内存中不要有太多数据在计算