Giter VIP home page Giter VIP logo

unity-cacheserver-cluster's Introduction

Unity CacheServer Cluster

Uses nodejs cluster feature to start cache server for multiple workers.

Based on cache server version 5.3
Should work for Unity AssetDatabase v1, does not support Unity versions priorior 5.0.
This feature is useful for huge amount of team to collaborate with the same cache server for huge projects.
Will allocate workers per 16GB of memory. Recommend to deploy it to a large ram and large SSD disk space machine.
Recommend to run it on linux rather than windows (but windows should work).
The cluster version of cache server WON'T try to delete old cache or free space because it might conflict to do so using workers.
However, it used to removes old cache based on file's access time. You may try to remove old cache using external tool or by bash.

For example (delete cache files who has not been visited for more than 200 days. Please make sure your OS has enabled file's access time updating by reading.):

cd ${Path_To_Cache_Dir}
find . -atime +200 -delete -type f

Launch CacheServer example:

${Path_To_Nodejs} main.js --path ${Path_To_Cache_Dir} > ${Path_To_Log_File}.log

Tested on tlinux 2.2 (like CentOS 7.9 based on linux kernel 3.10.107) with nodejs v0.12.7, E5-2670v3 with 128GB of memory, and more than 2TB of cache with more than 100 people of team.
Recommend to use the same version as me, tried on node 16 and looks like node 16 is significantly slower than node v0.12.7.

unity-cacheserver-cluster's People

Contributors

coresi7 avatar

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.