Giter Site home page Giter Site logo

dikang123 / node-memcached-monitor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aofong/node-memcached-monitor

0.0 1.0 0.0 53 KB

nodejs版本实现memcached服务监控、keys管理

License: GNU Lesser General Public License v3.0

JavaScript 42.37% Vue 54.41% HTML 3.23%

node-memcached-monitor's Introduction

node-memcached-monitor

stars Build Status

nodejs版本实现memcached服务监控、keys管理

本项目使用了es2015部分语法,请使用最新的运行环境,譬如不错的chrome、nodejs v8.0+

使用nodejs+vuejs+element-ui+webpack进行开发 作为学习项目,欢迎有需要的朋友一起进行探讨!

练手项目,欢迎拍砖!

实现功能:

  • 服务器基础数据:系统分配内存、存储占用内存、其他实时数据
  • 连接数:实时客户端连接数
  • 命令数:实时每秒处理命令数、key值命中率
  • 流量:实时每秒服务器发送流量
  • key:实现key搜索、查看、删除功能、占用大小、过期时间
  • 集群:支持集群模式

github 码云

npm安装

npm install node-memcached-monitor

运行示例

//获取代码
git clone https://gitee.com/aofong/node-memcached-monitor.git

//进入代码目录
cd node-memcached-monitor

//安装依赖
npm i 或者 npm install

//生产环境
npm run build
http://localhost:3000 //打开生产环境web页面


//开发环境,需要分别运行webpack server 和node server
//第一步:运行node server
node ./server/index   或者vscode直接按F5运行
//第二步:运行webpack server
npm run dev
//第三步:访问页面
http://localhost:3010 //打开开发环境web页面

默认配置

默认采用mockjs数据模拟相关数据

您可要在配置页进行实例数据配置,配置完后记得重启服务!

默认存储

内置使用mssql存储缓存key值,表结构如下:

表名:caches

字段:name 建唯一索引,并忽略重复,建议配置定时任务来清理数据(每日清空一次)

id name size ttl platform
1 cachekey 123 123456789 memcached

默认参数:

nodejs服务运行端口:3000

webpack运行端口:3010

缓存同步时间:15分钟

文件目录

文件 备注
server 存储nodejs服务代码
src 存储vuejs源文件
disk 生产环境代码
config.js 运行配置
server/sync/mssqlhelper.js 内置mssql连接问题,可在此修改数据库连接
server/api.js 接口服务,可在此移除mockjs数据 或者实现其他的存储

浏览器支持

现代浏览器、IE10+

技术支持

[email protected]

技术文档

nodejs vuejs element-ui webpack-cn

运行预览截图

服务监控

key管理

查看key

删除key

配置

node-memcached-monitor's People

Contributors

aofong avatar

Watchers

dikang123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.