Code Monkey home page Code Monkey logo

eve_tool's Introduction

一些eve online工具

各js工具作用:

  1. 导入静态数据,执行import_sde_mongo.js(原始数据见有用链接)
  2. 缓存市场数据,cache_market.js
  3. 计算每种商品最大利润路线,calculate_type_profit.js
  4. 计算指定两站之间的多商品运输利润路线,store_station_pair.js(队列缓存需要计算的空间站对), calculate_station_profit.js(可多进程执行)
  5. 缓存市场数据到mongodb,cache_market_mongo.js

/bin目录下工具:

  1. backup_mongo.sh 备份导入的静态数据库
  2. import_mongo.sh 导入静态数据库
  3. calculate.sh 缓存市场数据并计算

api启动方法:

node api/index.js

其它说明

  1. 当线上环境内存特别小时,先在本地执行import_mongo.sh,再将/tmp/sde整个目录压缩后sftp传到线上解包,最后执行node import_sde_mongo.js import fsd 和 node import_sde_mongo.js import bsd
  2. 缓存redis内存不够时。定时脚本缓存市场数据到mongo:*/5 * * * * echo $(date) >> /tmp/eve_cache_market.log && /home/zzz/.nvm/versions/node/v8.9.3/bin/node /home/zzz/eve_tool/cache_market_mongo.js cache >> /tmp/eve_cache_market.log

有用链接

eve_tool's People

Watchers

 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.