Code Monkey home page Code Monkey logo

Comments (7)

KurtThiemann avatar KurtThiemann commented on August 17, 2024 3

I might be able to write a small example script for this later today.

https://github.com/KurtThiemann/thanos-in-place

I know I am repeating myself, but please somehow make a backup.

from thanos.

KurtThiemann avatar KurtThiemann commented on August 17, 2024 1

Well in that case you probably don’t want to use the node version

from thanos.

KurtThiemann avatar KurtThiemann commented on August 17, 2024

Running this tool on a server that is currently running is probably a bad idea. Deleting stuff in regions that are currently loaded by the server would likely cause issues, and I don’t think there is any great way of determining whether a region is currently loaded.

The reason thanos does not remove chunks in place is that this would require to load whole region files into ram. This probably would not be an issue in your case (region files only get to around 10MiB), but it becomes important when running a lot of thanos instances in parallel.

You could make something like this work by immediately replacing the input region file with the output region file as soon as it is written. I might be able to write a small example script for this later today.

Somebody also created a nodejs version of thanos some time ago, which can do stuff in place if I remember correctly. Note that the JS version is slower than the PHP version, which might be relevant considering your world’s size. I am unfortunately somehow completely unable to find that repo right now.

Before making any changes to your world using any of these methods, please make a backup.

from thanos.

ChillerDragon avatar ChillerDragon commented on August 17, 2024

Before making any changes to your world using any of these methods, please make a backup.

Got no disk space for that :trollface:

from thanos.

ChillerDragon avatar ChillerDragon commented on August 17, 2024

I assume you mean this?

https://github.com/Saiv46/node-thanos

This project is unmaintained, so it WILL DEFINENTLY CORRUPT YOUR WORLDS.

yikes

from thanos.

ChillerDragon avatar ChillerDragon commented on August 17, 2024

@KurtThiemann sorry for the comment spam ._.

The reason thanos does not remove chunks in place is that this would require to load whole region files into ram. This probably would not be an issue in your case (region files only get to around 10MiB), but it becomes important when running a lot of thanos instances in parallel.

Is this how you guys use thanos? What thanos was made for? Run a lot of instances in parallel? Why? I do not see it working for the same world file. Or do you have multiple worlds plus limited ram?

You could make something like this work by immediately replacing the input region file with the output region file as soon as it is written. I might be able to write a small example script for this later today.

would save my life ❤️ no pressure tho :D

Running this tool on a server that is currently running is probably a bad idea. Deleting stuff in regions that are currently loaded by the server would likely cause issues, and I don’t think there is any great way of determining whether a region is currently loaded.

Thanks for the warning. I guess I could still schedule a maintenance downtime via cronjob and run this a few hours during night. A key feature that I still would need here is that it does not have to finish going over the whole world to delete something otherwise I am forced to do super long downtimes. Ideal would be custom offsets and partial snaps.

from thanos.

KurtThiemann avatar KurtThiemann commented on August 17, 2024

Is this how you guys use thanos? What thanos was made for? Run a lot of instances in parallel? Why? I do not see it working for the same world file. Or do you have multiple worlds plus limited ram?

This is what thanos is used for on Aternos: https://support.aternos.org/hc/en-us/articles/360055516791-World-option-Optimize
Since there are many servers on Aternos, multiple instances of thanos will run on the same machine.

The main reason why we created thanos as a standalone program is that it needs to work with many different Minecraft versions and mod loaders, and servers on Aternos are stopped regularly anyway. The best long-term solution in your case would probably be a custom plugin that just prevents chunks from being saved if they have not been modified.

from thanos.

Related Issues (16)

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.