在 alinode 的 github 上可以看到 agentx 和 commands 两个可用的项目,但是核心 alinode 只有在淘宝的 npm 上才能找到,难道是没有开源么?
alinode 针对 node 做了很多的改进,详见:http://alinode.aliyun.com/blog/6,涉及一些核心技术, 但部分已经贡献给社区。
@yjhjstz 我是想搭建一个 https://alinode.aliyun.com/ 这样的一个平台,但是没有服务器端的源码(websocket),目前只有 agentx 和 commands,这里是商业上的一些考虑么
这边有 binary , http://alinode.aliyun.com/dist/new-alinode/
@yjhjstz 我知道有 binary,想研究一把,写了个服务端的 websocket,但是只有部署 alinode 才能找到 node-kill 命令,求开源~
'use strict' var WebSocketServer = require('ws').Server , wss = new WebSocketServer({ port: 8080 }); wss.on('connection', function connection(ws) { ws.on('message', function incoming(message) { // console.log('received: %s', message); // console.log(typeof message) message = JSON.parse(message) if (message.type === 'register') { let msg = { params: { result: 'REG_OK' }, type: 'result', signature: message.signature } ws.send(JSON.stringify(msg)) } else if (message.type === 'heartbeat') { // console.log(message) let msg = { params: { result: 'HEARTBEAT_ACK' }, type: 'result' } ws.send(JSON.stringify(msg)) ws.send(JSON.stringify({ type: 'command', params: { command: 'take_gc_trace_verbose', timeout: 5000 }, id: 123 })) } else if (message.type === 'result') { console.log(message) } }) });
@yjhjstz 哇,遇到大神了,前段时间还在看您的 deep-into-node
目前没有开源计划呢。
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
alinode 针对 node 做了很多的改进,详见:http://alinode.aliyun.com/blog/6,涉及一些核心技术, 但部分已经贡献给社区。
@yjhjstz 我是想搭建一个 https://alinode.aliyun.com/ 这样的一个平台,但是没有服务器端的源码(websocket),目前只有 agentx 和 commands,这里是商业上的一些考虑么
这边有 binary , http://alinode.aliyun.com/dist/new-alinode/
@yjhjstz 我知道有 binary,想研究一把,写了个服务端的 websocket,但是只有部署 alinode 才能找到 node-kill 命令,求开源~
@yjhjstz 哇,遇到大神了,前段时间还在看您的 deep-into-node
目前没有开源计划呢。