Server Upgrade - Hopefully Less Crashes - !DHEDGE Command Fix

So DHEDGE (and a few related services) have been plagued with crashes lately. Our server had 2GB of ram to run everything.

Over the past month, the main stream running everything has been crashing out due to a lack of memory!

To fix this issue, and allow for less interruption of services and payouts, we have doubled the available ram to 4GB. This also doubles the cost, but if it fixes the issue, it will be worth it.

Screenshot from 2023-08-25 06-40-36.png

We currently have drips running (a ram eater) along with all the usual stuff, and we are sitting at a little under 40% usage. This is good!

I'm off to my main job for today, hopefully we can go the full shift without our DHEDGE command exiting due to a lack of available memory.

0.26817118 BEE
11 comments
(edited)

Hey @taskmanager,
I figured out todat that @dhedge is upvoting 'cross-posts' as well although their rewards are disabled by default. Maybe it would be possible to exclude cross-posts somehow? Those have automatically the tag #cross-post. Not sure if you could exclude it on that 'variable'?
Thanks anyways for this amazing project!

0.00155047 BEE

Noted, I'll add that asap, don't want wasted curation

0.00019238 BEE

Thanks for upgrading and updating!
!LUV
!LOLZ

0E-8 BEE

@taskmanager, @dailyspam(1/1) sent LUV. | connect | community | HiveWiki | NFT | <>< daily

Join in Hive General chat | Type ! help (no space) to get help on Hive. Info

Made with LUV by crrdlx

0E-8 BEE

People who are color blind have the highest rates of divorce.
They can't see the red flags.

Credit: reddit
@taskmanager, I sent you an $LOLZ on behalf of dailyspam

(2/4)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.

0E-8 BEE

We currently have drips running (a ram eater)

While I am not sure how you calculate the payouts of the drips, doing the actual drip transfers you might have use for what I use to pay out our daily staking rewards to ALIVE stakeholders, and that is over 9k transfers every day, and I send 25 transfers in each custom json transaction, and it takes about 45 minutes to do all of them.

The way it works is I have a 0.5 GB VPS from Privex running Debian 11 with IPv6 only and IPv4 out through NAT from Privex costing $2 USD per month, and it runs both the payouts and also our tipping bot as well, the tipping bot takes about 45 MB in ram, I have not measured the payouts for ram but I have never had any issues with it.

https://github.com/flaxz/alivepay

I have 2 smaller scripts there to calculate the payouts which saves them as CSV files, and then the bigger script payout.py which loads those files into a sqlite3 database, and then runs the payouts until they are finished, with failover and recover all built in, I made the first version myself, but also hired bambukah and captaincryptic to add the more advanced stuff.

Below is also our tipping bot as well, it's a fork of the original pizza bot, all is open source.

https://github.com/flaxz/alivebot

!ALIVE

0E-8 BEE

@taskmanager! You Are Alive so I just staked 0.1 $ALIVE to your account on behalf of @ flaxz.alive. (2/30)

The tip has been paid for by the We Are Alive Tribe through the earnings on @alive.chat, feel free to swing by our daily chat any time you want, plus you can win Hive Power (2x 50 HP) and Alive Power (2x 500 AP) delegations (4 weeks), and Ecency Points (4x 50 EP), in our chat every day.

0E-8 BEE

I'm going to take a look at that and borrow the bit for 25 transfers per custom, this one at a time bit is taking forever.

If I did better scheduling of what is running when, I wouldn't have this issue and could likely make due with a cheaper server, but I've got quite a bit running on this thing.

0.00049940 BEE

and borrow the bit for 25 transfers per custom, this one at a time bit is taking forever.

Great, and also note that we set that as the max transfers in one tx as we measured it against how big of a memo I might need, and usually it would fit just over 30 transfers in one tx, as each custom json tx has an upper limit just above 8kB, so 25 was to have some wiggle room, if you have much longer memo's you might have to lower it.

!ALIVE

0E-8 BEE

Thanks for the update and adaptations! You're doing a great job, keep it up! :D

0E-8 BEE

Congratulations @taskmanager! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You distributed more than 51000 upvotes.
Your next target is to reach 52000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

0E-8 BEE

Hey Task! Have you ever considered distributing the DVS staked or a combination of staked/liquid?

0E-8 BEE

I think I got too many DVS for delegating to dhedge. Instead of .1 I got 10 . Is something going on or is that just because the price crashed?

0E-8 BEE

you got it right. it was a manipulation just a minute before drop. i got 100 times more. guess what will happen...

0.00317035 BEE

what in the world is going on with DVS?

0E-8 BEE
(edited)

@maddogtime @watchlist and his account network market-manipulation. i am not 100% sure, but i suppose he fucked this project forever... he manipulated the DVS prize, just before delegation reward, so they received 1000s of tokens.

the clever guy thought he will sell us for 1 HIVE each... real parasite... he fcked out with himself too, as he has the 2 sentence crap post network built on HBI and DVS votes...

sht post as much as you can, at least you get back a bit from what this psycho idiot has taken from us...

if not all the big delegators were in it, prob. others will leave soon.

0.00006715 BEE

i checked the hive-engine explorer and there was definitely some crazy shit going on. that's bad news because this DVS was paying so nicely

0.00000719 BEE

This is unfortunate but it is a solve-able problem. I've seen this happen before on a much larger scale - and it can be easily fixed. Simply basing the payouts on an average price over 7 days, 30 days, etc. That can nix these types of manipulative actions.

I also believe in @taskmanager and the project and do not ,at this time believe it is dead. This is unfortunate but recoverable in my opinion if swift action is taken.

0E-8 BEE

are you still here mate ?

0E-8 BEE

Not sure if you are interested but we started a new Archon Discord, if you would like to join!
No pressure or duties, but Archon is all about you and I would love for you to be there.

https://discord.gg/6xRqnaVpK6

0E-8 BEE

Hi,

Can you please explain me what just happened with DVS??? Was it you? that market manipulator, 'taxing everybody' network belong to you? if not who's that??? So this is it?

0E-8 BEE