create account

[COMPLETE] Maintenance of chainBB - indexes missing by jesta

View this thread on: hive.blogpeakd.comecency.com
· @jesta · (edited)
$148.61
[COMPLETE] Maintenance of chainBB - indexes missing
**UPDATE**: This maintenance is now complete and the forums are fully populated again. 

----

Just as a heads up - the chainBB forums are looking pretty empty because the DB got wiped within the last 8 hours. Not sure how/why, could be that the DB was accessible somehow and someone dropped them, or that the beta environment running within docker just took a dump. I haven't spent a lot of time with the infrastructure yet because this is still one huge test, but this highlights the need for a little of my time towards it.

Luckily, nothing of value is actually stored in these indexes or the database! 

I have a huge EC2 instance on standby that needs to sync the blockchain and then rerun the indexer, then just import it over into the beta server, and we'll be right back to where we started. The beta forums should be back and 100% running again within the next few hours. 

On a separate topic, I'm hoping to add "Sticky" posts at some point this week, and hopefully add a "Decline Payouts" button to the post creation process. Both of these options would be very well suited for posts like this.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 98 others
properties (23)
authorjesta
permlinkmaintenance-of-chainbb-indexes-missing
categorychainbb
json_metadata{"app":"steemit/0.1","format":"markdown","tags":["chainbb","maintenance"]}
created2017-05-16 18:21:33
last_update2017-05-17 17:32:39
depth0
children9
last_payout2017-05-23 18:21:33
cashout_time1969-12-31 23:59:59
total_payout_value129.430 HBD
curator_payout_value19.177 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,106
author_reputation140,605,453,893,072
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries
0.
accountchainbb
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,467,768
net_rshares17,507,414,961,599
author_curate_reward""
vote details (162)
@barvon ·
Good job @jesta
I like it.
I like your way!!!
properties (22)
authorbarvon
permlinkre-jesta-maintenance-of-chainbb-indexes-missing-20170516t182249138z
categorychainbb
json_metadata{"tags":["chainbb"],"users":["jesta"],"app":"steemit/0.1"}
created2017-05-16 18:22:57
last_update2017-05-16 18:22:57
depth1
children0
last_payout2017-05-23 18:22:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation46,236,405,475,497
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,467,814
net_rshares0
@eric-boucher ·
$0.19
What a troopper! Great work, thanks for the major update on this one.  Namaste :)
👍  
properties (23)
authoreric-boucher
permlinkre-jesta-maintenance-of-chainbb-indexes-missing-20170518t000231339z
categorychainbb
json_metadata{"tags":["chainbb"],"app":"steemit/0.1"}
created2017-05-18 00:02:30
last_update2017-05-18 00:02:30
depth1
children0
last_payout2017-05-25 00:02:30
cashout_time1969-12-31 23:59:59
total_payout_value0.188 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length81
author_reputation68,503,601,066,539
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,510,775
net_rshares114,594,179,966
author_curate_reward""
vote details (1)
@jesta ·
This maintenance is now complete, forum indexes restored, snapshot saved (with todays date for backups), and the big EC2 used to regenerate the indexes is on standby for another occurrence of this.
properties (22)
authorjesta
permlinkre-jesta-maintenance-of-chainbb-indexes-missing-2017517t165842258z
categorychainbb
json_metadata{"app":"chainbb/0.1","format":"markdown+html","tags":[]}
created2017-05-17 20:58:42
last_update2017-05-17 20:58:42
depth1
children0
last_payout2017-05-24 20:58:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length197
author_reputation140,605,453,893,072
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries
0.
accountchainbb
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,506,012
net_rshares0
@omrusman ·
I really like all of your blogs 
and i am also following you 
can you please follow me back :D
And i am new here so can you please
upvote some of my post please 

Thanks!
properties (22)
authoromrusman
permlinkre-jesta-maintenance-of-chainbb-indexes-missing-20170520t173422970z
categorychainbb
json_metadata{"tags":["chainbb"],"app":"steemit/0.1"}
created2017-05-20 17:34:12
last_update2017-05-20 17:34:12
depth1
children0
last_payout2017-05-27 17:34:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length170
author_reputation2,021,244,563,068
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,604,515
net_rshares0
@p0o ·
$0.05
Why you are not using Steem to store all the information in chainBB? I thought it's already like that in your previous post. There are so many flexibility in using specific tags combined with custom meta data to format and sort content differently.
👍  
properties (23)
authorp0o
permlinkre-jesta-maintenance-of-chainbb-indexes-missing-20170516t190816818z
categorychainbb
json_metadata{"tags":["chainbb"],"app":"steemit/0.1"}
created2017-05-16 19:08:18
last_update2017-05-16 19:08:18
depth1
children3
last_payout2017-05-23 19:08:18
cashout_time1969-12-31 23:59:59
total_payout_value0.036 HBD
curator_payout_value0.012 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length248
author_reputation8,373,104,781,065
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,469,159
net_rshares31,250,318,435
author_curate_reward""
vote details (1)
@jesta · (edited)
$1.79
The user data, posts and replies are all stored in Steem, but I maintain the forum indexes in an  external database for raw speed and scalability. 

Steem also doesn't offer API's for retrieving content as the forums would need it either. The forums themselves pull based on category (steemd pulls on tags) and then sorts them by when the last response occurred. It would be possible to build a custom plugin for steemd that achieved this, but that's a lot harder than using more traditional web technologies.

There's also the small matter of a steemd full node requiring upwards of 40GB of RAM to run smoothly, where as this forum index I'm running requires around 2GB. Adding a custom plugin to steemd could reduce the 40GB, but probably not a lot, as most of the normal plugins would still be required to maintain the proper data.

It's just not possible to efficiently pull the data needed with steemd at this point, so the indexes are in a database :)

Hope that helps explain why I went the route I did!
👍  , , , , , , , , ,
properties (23)
authorjesta
permlinkre-p0o-re-jesta-maintenance-of-chainbb-indexes-missing-20170516t195915398z
categorychainbb
json_metadata{"tags":["chainbb"],"app":"steemit/0.1"}
created2017-05-16 19:59:15
last_update2017-05-16 20:07:39
depth2
children2
last_payout2017-05-23 19:59:15
cashout_time1969-12-31 23:59:59
total_payout_value1.342 HBD
curator_payout_value0.443 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,010
author_reputation140,605,453,893,072
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,470,719
net_rshares915,417,184,530
author_curate_reward""
vote details (10)
@p0o · (edited)
I understand the problem and I think keeping the indexes in a database was a good choice. There are ways to implement it over blockchain with a nodeJS app as a middleware to provide a different API using steem-js but it also involve some hacks and caching which is not necessarily easier.

However, since you are looking for a better database solution I recommend you to take a look at Gundb as it could provide a decentralized solution with an API as good as firebase.
properties (22)
authorp0o
permlinkre-jesta-re-p0o-re-jesta-maintenance-of-chainbb-indexes-missing-20170517t045057043z
categorychainbb
json_metadata{"tags":["chainbb"],"app":"steemit/0.1"}
created2017-05-17 04:51:00
last_update2017-05-17 04:51:30
depth3
children1
last_payout2017-05-24 04:51:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length469
author_reputation8,373,104,781,065
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,482,458
net_rshares0
@steemitboard ·
Congratulations @jesta! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/comments.png)](http://steemitboard.com/@jesta) Award for the number of comments

Click on any badge to view your own Board of Honnor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/steemitboard/@arcange/steemitboard-com-introducing-the-first-steemit-game-experience)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

If you want to support the SteemitBoard project, your upvote for this notification is welcome!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-jesta-20170517t081826000z
categorychainbb
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-05-17 06:18:24
last_update2017-05-17 06:18:24
depth1
children0
last_payout2017-05-24 06:18:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length687
author_reputation38,975,615,169,260
root_title"[COMPLETE] Maintenance of chainBB - indexes missing"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id3,484,043
net_rshares0