Not sure if this is the right place to ask the question, but there doesn’t seem to be an “askgeeks” or something.

Make all of them run a bogosort on a list of 10-100 items. Whichever one finishes last gets shot. Repeat until you no longer have idle servers

@onlinepersona@programming.dev
creator
link
fedilink
English
21Y

I too like my n x n! algorithms 8)

That’s a good question!

I have one running an adblocking DNS resolver.

For my business I have one that’s only used as a proxy (dumb IP whitelisting by API provider), another running headless Chrome (scraper for services without API), and another as a VPN. I always feel so wasteful but the majority of these can’t be combined into one server for reasons beyond my control.

For everything else, I containerize. I feel that that is much more energy efficient though I could be wrong.

Tor relay

I’m assuming you’re talking about some individual VPC that you’re paying for and not using. If you don’t do anything with it in a week then just shut it down after downloading a disk image.

@onlinepersona@programming.dev
creator
link
fedilink
English
11Y

It’s a sporadically active server for friends and family. They access it maybe a few times a day and it’s the cheapest VPS I could find. So shutting down is not an option atm.

TehPers
link
fedilink
English
61Y

Turn them off, or repurpose them into Minecraft servers for friends. I’m using more resources running a modded server I don’t play on than I am for actual productive work these days though.

Or some BOINCing.

I boinc in an LXC container with a cron job to run during the period in the day on weekdays when the electricity is pretty much all renewables (and I’m not watching Jellyfin). The intention is to turn sunlight into tiny forward progress towards curing cancer.

Specifically, the Community Grid projects Mapping Cancer Markers and Smash Childhood Cancer.

@onlinepersona@programming.dev
creator
link
fedilink
English
21Y

Do you have a recipe or script or something? The docker image seems to assume you’re running it on your own computer and will be configuring it with some GUI? But I’m not going to install xfce on my server and RDP into it to get boinc running.

You don’t need the GUI, the client does all the work. I use a Debian container, so just sudo apt-get install boinc-client.

Once that’s installed, you go to the project (in my case, World Grid) and setup your account. As part of that, it will give you a URL and account key. Then back on your server, you use the boinccmd to --project_attach the URL and key.

@onlinepersona@programming.dev
creator
link
fedilink
English
11Y

that’s a better description than their documentation honestly, ty

thats really great.

Im currently saving up on a new roof of an older farm building, and depending on the utilities I can come up I will put solar panels on it.

I am really thinking how to utilize the extra power, this one sounds like a great addition to an business concept for downtimes.

username checks out.

Big P
link
fedilink
English
31Y

If your electricity costs you nothing

thats in general the culprit with own server.

but in my place electricity itself costs not much, half of the cost is only taxes and other expenses around the energy.

therefore 200 kwh more or less in a year(that would be 25 watts) is not that much.

@onlinepersona@programming.dev
creator
link
fedilink
English
01Y

Germans with 31c/kwh 😿

Big P
link
fedilink
English
21Y

My electricity currently costs 65p/kWh…

@onlinepersona@programming.dev
creator
link
fedilink
English
11Y

Youch. Are you getting rammed?

Big P
link
fedilink
English
11Y

Very much so

@onlinepersona@programming.dev
creator
link
fedilink
English
21Y

I tried finding instructions for running headless on a server, but everything seems to be for desktop users with a GUI. And the code is proprietary for some reason?

If you rent a VPS that might get you kicked, so check your terms first.

make them enter powersaving states

@onlinepersona@programming.dev
creator
link
fedilink
English
11Y

How do you do that on a VPS?

the hoster will take care usually as low energy costs is a primary goal for them.

@onlinepersona@programming.dev
creator
link
fedilink
English
11Y

It’s minimally specced machine. They should be able to handle it being at 70% CPU and memory most of the time.

I forget about them until my boss asks me why we are spending so much on cloud services.

Nato Boram
link
fedilink
English
11Y

Put your Git host’s runners on them and you now have free-ish CI minutes!

@onlinepersona@programming.dev
creator
link
fedilink
English
11Y

It’s… compiling ?

Create a post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



  • 1 user online
  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1.11K users / 6 months
  • 1 subscriber
  • 1.21K Posts
  • 17.8K Comments
  • Modlog