- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在 Docker 中运行 RethinkDB。在我们搬到新的数据中心之前,一切都运行良好一段时间(但我不确定这是否与搬迁有关)。这是正在发生的事情。
我启动了 rethinkdb 容器,一段时间内一切运行良好。一段时间后(一小时或更长时间)我在 Docker 日志中看到以下内容(以黄色突出显示):
我完全不知道为什么它会随机从系统收到一个 SIGTERM。任何想法将不胜感激!
编辑:我正在添加 SIGTERM 的日志文件片段。根据时间戳,似乎没有任何模式。
2015-07-15T16:15:02.888762613 663165.661585s notice: Server got SIGTERM from pid 0, uid 0; shutting down...
2015-07-17T17:02:11.562306701 13322.914561s notice: Server got SIGTERM from pid 0, uid 0; shutting down...
2015-07-19T18:31:12.499022237 96786.220054s notice: Server got SIGTERM from pid 0, uid 0; shutting down...
2015-07-20T13:52:44.493304030 69690.608865s notice: Server got SIGTERM from pid 0, uid 0; shutting down...
编辑2:我在Docker之外运行了RethinkDB,我在日志中看到了这一点:错误:工作进程无法与主进程重新同步。不确定是否有什么需要担心的。它似乎根本不会影响 RethinkDB 实例(所有客户端都保持连接)。
2015-07-21T06:53:10.663375859 0.116098s info: Automatically using cache size of 10702 MB
2015-07-21T06:53:10.676277261 0.128998s notice: Listening for intracluster connections on port 29015
2015-07-21T06:53:10.684504354 0.137225s notice: Listening for client driver connections on port 28015
2015-07-21T06:53:10.685485550 0.138206s notice: Listening for administrative HTTP connections on port 8080
2015-07-21T06:53:10.686313405 0.139034s notice: Listening on addresses: 127.0.0.1, 172.17.42.1, 192.151.151.122, ::1, fe80::1879:43ff:fe5e:bdb2%34, fe80::62eb:69ff:fe07:d986%2, fe80::b837:f2ff:fecd:d5cd%4
2015-07-21T06:53:10.686316632 0.139037s notice: Server ready, "0aa312e817ef_nrx" 069ac5b3-9f43-4bbe-9022-c1f006790e99
2015-07-21T06:53:11.558116243 1.010837s error: worker process failed to resynchronize with main process
2015-07-21T06:53:11.558122179 1.010843s notice: A newer version of the RethinkDB server is available: 2.0.4. You can read the changelog at <https://github.com/rethinkdb/rethinkdb/releases>.
编辑3:我在这里发现了另一个问题,我认为这可能是真正的问题。重新思考适配器(在应用程序中)正在保持与已建立的数据库服务器的连接,这会耗尽系统中的可用文件描述符/端口。以下是 lsof
的打印输出示例。 注意这只是一个简短的列表。当多人使用系统时,有数百/数千个此类保持打开状态
node 11633 [username_ommitted] 201u IPv4 0x53153575d33d64bb 0t0 TCP 192.168.1.142:61041->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 202u IPv4 0x53153575d33fa65b 0t0 TCP 192.168.1.142:61053->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 203u IPv4 0x53153575dd6a5d8b 0t0 TCP 192.168.1.142:61043->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 204u IPv4 0x53153575bff6717b 0t0 TCP 192.168.1.142:61044->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 206u IPv4 0x53153575d33e54bb 0t0 TCP 192.168.1.142:61049->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 207u IPv4 0x53153575d33ef4bb 0t0 TCP 192.168.1.142:61050->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 208u IPv4 0x53153575d33f2a4b 0t0 TCP 192.168.1.142:61051->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 209u IPv4 0x53153575c333a17b 0t0 TCP 192.168.1.142:61054->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 210u IPv4 0x53153575d33b47fb 0t0 TCP 192.168.1.142:61056->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 211u IPv4 0x53153575d33de17b 0t0 TCP 192.168.1.142:61057->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 212u IPv4 0x53153575d33f065b 0t0 TCP 192.168.1.142:61058->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 213u IPv4 0x53153575bff67a4b 0t0 TCP 192.168.1.142:61059->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 216u IPv4 0x53153575dd68f31b 0t0 TCP 192.168.1.142:61062->[RETHINK_IP]:28015 (ESTABLISHED)
node 11633 [username_ommitted] 217u IPv4 0x53153575dd675a4b 0t0 TCP 192.168.1.142:61063->[RETHINK_IP]:28015 (ESTABLISHED)
最佳答案
我遇到了完全相同的问题,并认为这是由于未关闭数据库连接引起的(正如您在 EDIT 3
中所述)。我在expressjs应用程序中使用RethinkDB,并遵循here中的中间件示例但我总是在不调用 next() 的情况下终止 Controller 内的请求-响应周期,这意味着 closeConnection 中间件永远不会被访问。
关于docker - Rethinkdb SIGTERM,关闭,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31518078/
RethinkDb 是否支持类似于 Mysql 中的 AUTO_INCREMENT 的整数列上的 AUTO_INCREMENT。 https://dev.mysql.com/doc/refman/5.
我可以在 RethinkDB 中创建复合主键吗?例如,如果我有下一个文档结构的表格 {authorsId: '371df80c-2efd-48f9-ac37-3edcdb152fb1', postsI
假设我有一个“类别”表,每个类别在“数据”表中都有关联数据,并且在其他“关联”表中都有关联数据,并且我想删除一个类别及其所有关联数据。我目前正在做的事情是这样的: getAllDataIdsFromC
我一直在寻找有关写入原子性的信息,但没有找到有关读取的信息。读取总是原子的吗?例如,我传递一个只读查询,通过查询多个不同的文档来使用append()填充数组。基本上,在查询开始出现在结果中后,我是否能
我正在尝试根据哈希中的一些预先计算的值更新 RethinkDB 中的多个文档。即 给定一个带有主键 slug 的表 stats 以及诸如 的数据 [{slug: 'foo', stats: {}},
RethinkDb 是否支持创建/管理数千个表? 用例:租户管理的表,没有已知架构。 编辑 future 引用:https://github.com/rethinkdb/rethinkdb/issue
我不知道如何获取“test.events”表的数据大小。 r.db('rethinkdb').table('stats').whatGoesHere() // Output size of 'even
我正在使用带有官方 python 驱动程序的 Rethinkdb 1.10.1。我有一个与一个用户关联的标记事物表: { "id": "PK", "user_id": "USER_PK
我需要从命令行以编程方式创建 RethinkDB 数据库。但是......我不知道如何做到这一点。 我知道我可以从 Web UI 或客户端驱动程序执行此操作,但是没有执行此操作的命令吗? 最佳答案 正
给定的样本数据,如: { 'id': 1, 'things': [{'name': 'a'},{'name': 'b'},{'name': 'c'}] } 如何更新文档以从嵌入的数组中删除
我正在处理一个看起来像这样的数据集: "bitrates": [ { "format": "mp3" , "rate": "128K" } , { "forma
我有 2 个 RethinkDB 表: Left: { id: String, title: String, key: String // for mapping with table R
如果数组存在,我们应该如何将一个项目追加到数组中,或者创建一个数组并插入到其中。 我尝试了合并命令,但不允许合并数组,只能替换它们。 r.db('testdb').table('users').get
我对 RethinkDB 中的连接如何工作有点模糊。每次执行查询时,我都会打开一个新连接,而不会在查询完成后关闭它们。 这是一个好的做法吗?或者我应该在查询完成后显式关闭连接? (我正在使用 JS 驱
我想限制 Rethinkdb 查询中嵌套对象的数量。假设我有嵌套消息的对话。 [对话] [{ id: "fgh675", name: "Some conversation",
我正在尝试从 RethinkDB 文档中删除 key 。我的方法(不起作用): r.db('db').table('user').replace(function(row){delete row["k
我正在实现一个使用 RethinkDB 来存储数据的应用程序(HTML 和 AngularJS)。 基本上,任何人都可以从 .js 文件获取 RethinkDB 连接凭据。 那么如何才能让用户只获取自
测试 RethinkDB 并想知道使用 JavaScript 客户端插入 1m 行的正确方法。目前正在执行类似以下操作,但要么简单地停止插入而没有错误,要么出现内存异常: fo
有没有办法在 rethinkdb 中取消订阅或更改现有的 changefeed 观察者?将 changes() 函数的返回值设置为 null 似乎没有任何作用,是否有 unsubscribe() 函数
我想在 RethinkDB 中随机排序文档。这样做的原因是我返回了n组文档,并且每组必须在结果中按顺序出现(所以属于一个组的所有文档应该放在一起);我需要随机选择一个文档,属于结果中的第一组(您不知道
我是一名优秀的程序员,十分优秀!