Background: I run a small server and ever now and then I get reports about slowness/lag/crashes. More often than not, this is traced back to some relation to Dynmap.
I scoured the forums for others having similar problems and found that many of you have also asked similar questions; "How to improve dynmap", "dynmap crashing", "world lags when players explore", etc.
The answer to most of these questions have been:
-pre render the world(s)
-change render settings for quality or timing
-etc
I was hoping to find a way around having to decrease settings/frequency and came across the suggestion for SSHFS and FuseFTP to link two machines by "sharing" a directory. Where as I believe this is the step in the right direction, I hope there is even a further step to completely offload the storage and process for Dynmap to a different machine.
Thoughts: In order to completely offload Dynmap from a machine, one would have to have a copy of the world files on a different machine. For my needs I don't need any of the chat functionality of Dynmap so a one way path is just fine. With that in mind, I would imagine that if I could have sort of method of copying the world data to another machine, that second machine could work on its own and if it did crash or hit a heavy load, the game server would be chugging along just fine. (I happen to have an older server box that currently is just sitting collecting dust. This would be a perfect use for it.)
My first thought was to setup some kinda of rsync, but realized that I wanted something a little more "real time" than having to say set a chron and have rsync run every x minutes.
After searching around I came across lsyncd(https://github.com/axkibe/lsyncd). From my understanding lsyncd watches for changes in a directory and then syncs those up with another system. This sounds like it might just work to setup with the worlds folder and send the data off to my other server box.
I would think that the work load for this would be significantly lower than having Dynmap run(not to mention the storage that Dynmap chews up).
Questions:
- Are any of you familiar with lsyncd?
- Would this be a viable option? Or is there a better option?
- Am I just way off the deep end and being more hopeful than realistic?
Your input and thoughts are much appreciated.
I scoured the forums for others having similar problems and found that many of you have also asked similar questions; "How to improve dynmap", "dynmap crashing", "world lags when players explore", etc.
The answer to most of these questions have been:
-pre render the world(s)
-change render settings for quality or timing
-etc
I was hoping to find a way around having to decrease settings/frequency and came across the suggestion for SSHFS and FuseFTP to link two machines by "sharing" a directory. Where as I believe this is the step in the right direction, I hope there is even a further step to completely offload the storage and process for Dynmap to a different machine.
Thoughts: In order to completely offload Dynmap from a machine, one would have to have a copy of the world files on a different machine. For my needs I don't need any of the chat functionality of Dynmap so a one way path is just fine. With that in mind, I would imagine that if I could have sort of method of copying the world data to another machine, that second machine could work on its own and if it did crash or hit a heavy load, the game server would be chugging along just fine. (I happen to have an older server box that currently is just sitting collecting dust. This would be a perfect use for it.)
My first thought was to setup some kinda of rsync, but realized that I wanted something a little more "real time" than having to say set a chron and have rsync run every x minutes.
After searching around I came across lsyncd(https://github.com/axkibe/lsyncd). From my understanding lsyncd watches for changes in a directory and then syncs those up with another system. This sounds like it might just work to setup with the worlds folder and send the data off to my other server box.
I would think that the work load for this would be significantly lower than having Dynmap run(not to mention the storage that Dynmap chews up).
Questions:
- Are any of you familiar with lsyncd?
- Would this be a viable option? Or is there a better option?
- Am I just way off the deep end and being more hopeful than realistic?
Your input and thoughts are much appreciated.