node-memcached-monitor
Nodejs implements memcached service monitoring and keys management
This project uses es2015 part of the syntax, please use the latest operating environment, such as good Chrome, NodeJS V8.0 +
Use NodeJS +vuejs+ Element-UI +webpack for development as a learning project, welcome friends who need to discuss together!
Practice project, welcome to clap brick!
Functions:
- Basic server data: memory allocated by the system, memory occupied by storage, and other real-time data
- Connections: Indicates the number of real-time client connections
- Number of commands: number of commands processed per second and key value hit ratio
- Traffic: Real-time traffic sent by the server per second
- Key: searches for, views, deletes, occupies, and expires keys
- Cluster: Supports the cluster mode
Making code cloud
Run the example
// get the code gitcloneHTTP: / / https://gitee.com/aofong/node-memcached-monitor.git / / directory into the codecdNode-memcached-monitor // Install depends on NPM I or NPM install // Run nodejs background service node server/index or VScode directly by F5 run // development environment NPM run dev http://localhost:3010 // Run the development environment web page // Production environment NPM run build http://localhost:3000 // Run the production environment web pageCopy the code
The default configuration
By default, mockJS data is used to simulate related data
You can configure instance data in the configuration page, remember to restart the service after configuration!
The default storage
The built-in MSSQL is used to store cache keys, and the table structure is as follows:
The table name: caches
Field: name Create a unique index and ignore duplicates. It is recommended to configure a scheduled task to clear data (once a day).
id | name | size | ttl | platform |
---|---|---|---|---|
1 | cachekey | 123 | 123456789 | memcached |
Default parameters:
Nodejs service running port: 3000
Port for running the web interface: 3010
Cache synchronization time: 15 minutes
File directory
file | note |
---|---|
server | Store the NodeJS service code |
src | Store vuejS source files |
disk | Production environment code |
config.js | Run the configure |
server/sync/mssqlhelper.js | Built-in MSSQL connection problem, database connection can be modified here |
server/api.js | Interface service, where you can remove MockJS data or implement additional storage |
Browser support
Modern browsers, IE10+
Technical support
Technical documentation
nodejs vuejs element-ui webpack-cn