Server Upgrade - Hopefully Less Crashes - !DHEDGE Command Fix

in #dhedgelast year

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.

Sort:  

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!

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

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

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.

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

@taskmanager! You Are Alive so I just staked 0.1 $ALIVE to your account on behalf of @ flaxz.alive. (3/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.

@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.

Thanks for upgrading and updating!
!LUV
!LOLZ

@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

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.

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

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:

Hive Power Up Day - September 1st 2023
HiveBuzz Women's World Cup Contest - Prizes from our sponsors
HiveBuzz Women's World Cup Contest - The results, the winners and the prizes

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

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?

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

what in the world is going on with DVS?

@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.

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

i didn't use that much, unfortunately, just weekly 1-2. lost 30-40 USD on it. anyway, it was predictable in some way. was too good to be true.

too bad, it's ending because of an idiot. just checked, he earnt approx 1000 HIVE in the last month by abusing, manipulating the DVS market... I even had to go to Discord, find people there to buy DVS, that i could avoid his 'taxing'... and still that wasn't enough for him + the post reward harvesting what he does... some level of greed and stupitidy all in one...

this was my last 2nd layer token action. from this point on, only taking money out from Hive, fck it, if it's full with 'individuals' like this.

very sad, but the auto votes were a little too good to be true so i had wondered how long it could last.
20% interest on hbd savings and boosting with ecency points are still good but now i have to wonder how long those will last

i am curious how much the vote will fall tomorrow and how many people stop the delegations... i just heard, read about similar things, never saw in live.

i'm too old to understand how all this works. i just try to make good posts based in my real world, be supportive and look for the best earnings opportunities. DHEDGE delegations have been one of the best for some time now so i have not lost any money that i put in from outside of hive. but today i lost quite a lot of confidence and interest in 2nd layer tokens for sure

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.

it's not really unfortunate. this guy is ongoingly manpiulated the low volume DVS market in the last 2 months. if taskmanager saw it, and he new the drop happens based on current price... well, can't be that naive, that nobody will try to take advantage on that, so i have to suppose some level of complicit. especially that the watchlist account belong to maddogtime farm accounts...

yes, maybe in the next bull market it can be fixed... 100x were dropped than usual... + how price looks like, min 5-10x will be dropped in the coming days. Who is that stupid, still buy just a bit, even if the other big delegator accounts won't leave asap.

maddogtime put it in a downward spiral, it takes lots of time to recover. and obviously, the parasite won't leave this market until it's not crashed totally, and anyway i (majority) won't gift him a single cent more...

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

are you still here mate ?

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?