我尝试按照以下说明运行 yugabyte 2.0.8.0 快速启动演示:
https://docs.yugabyte.com/latest/quick-start/install/
https://docs.yugabyte.com/latest/quick-start/create-local-cluster/
具有 3 个本地节点
./bin/yb-ctl --rf 3 create
然后探索ysql:
https://docs.yugabyte.com/latest/quick-start/explore-ysql/
但数据库创建失败:
yugabyte=# CREATE DATABASE yb_demo;
CREATE DATABASE yb_demo;
ERROR: Timed out: Write(tablet: 00000000000000000000000000000000, num_ops: 1, num_attempts: 9, txn: 00000000-0000-0000-0000-000000000000) passed its deadline 3393.992s (passed: 65.317s): Remote error (yb/rpc/outbound_call.cc:440): Service unavailable (yb/tserver/tablet_service.cc:291): Soft memory limit exceeded (at 93.81% of capacity), score: 0.00
yugabyte=# CREATE DATABASE yb_demo;
CREATE DATABASE yb_demo;
ERROR: Already present: Keyspace 'yb_demo' already exists
yugabyte=# DROP DATABASE yb_demo;
DROP DATABASE yb_demo;
ERROR: database "yb_demo" does not exist
yugabyte=# \c yb_demo;
FATAL: database "yb_demo" does not exist
Previous connection kept
所以数据库创建失败。我无法重新创建它,但似乎我也无法删除它或连接到它。错误消息提示没有足够的内存。
免费输出是:
total used free shared buff/cache available
Mem: 4045992 1400276 1419504 64104 1226212 2319448
Swap: 4194300 0 4194300
问题:
运行 YugaByte 需要多少内存?在这种情况下,运行时环境是带有桌面的 4GB Ubuntu 16.4 VirtualBox VM。您的硬件要求至少为 2GB https://docs.yugabyte.com/latest/deploy/checklist/。
我怎样才能恢复这个错误?删除失败的数据库或完成数据库创建?
谢谢您的支持。