6.6 memcached 日志文件

每当NDB初始化内存缓存引擎时,它都会将包含时间戳和版本号的消息写入其日志文件,如下所示:

12-Oct-2011 13:40:00 PDT NDB Memcache 8.0.32-ndb-8.0.32 started
[NDB 8.0.32; MySQL 8.0.32-ndb-8.0.32]

它还会记录其连接到主集群的尝试:

Contacting primary management server (localhost:1186) ...
·Connected to "localhost:1186" as node id 4.

成功获取初始配置数据后,内存缓存引擎会记录一条描述配置的摘要消息,类似于此处显示的内容:

Retrieved 3 key prefixes for server role "default_role"
The default behavior is that:
 GET uses NDB only
 SET uses NDB only
 DELETE uses NDB only
The 2 explicitly defined key prefixes are "mc:" () and "t:" (demo_table_tabs)
Server started with 4 threads.

内存缓存引擎还记录每个附加集群连接的建立,如下所示:

Connected to "" as node id 5.

一条priming the pump...消息指示引擎将要预取事务对象池(API 连接记录)。紧随其后的是一条done ... 消息,指示预取使用了多少时间。在预取完成之前,服务器尚未准备好响应客户端。

Priming the pump ...
Scheduler: using 2 connections to cluster 0
Scheduler: starting for 1 cluster; c0,f0,t1
done [0.579 sec].

NDB 引擎完成初始化后,memcached 会打印一条消息来验证引擎是否已加载,并枚举其一些功能:

Loaded engine: NDB Memcache 8.0.32-ndb-8.0.32
Supplying the following features: compare and swap, persistent storage, LRU

如果启用了在线重新配置,NDB 引擎会记录每个重新配置以及新配置的摘要,类似于此处显示的内容:

Received update to server role default_role
Retrieved 3 key prefixes for server role "default_role".
The default behavior is that:
 GET uses NDB only
 SET uses NDB only
 DELETE uses NDB only.
The 2 explicitly defined key prefixes are "mc:" () and "t:" (demo_table_tabs)
ONLINE RECONFIGURATION COMPLETE

在关闭时,memcached 记录关闭序列的初始化和完成,NDB 引擎的调度程序也记录它自己的关闭:

Initiating shutdown
Shutting down scheduler.
Shutdown completed.