r/ArkEcosystem • • Sep 26 '18
Network Post Mortem - A summary of the recent network outage
Over the course of this past Monday and leading into early Tuesday morning, the ARK mainnet suffered a prolonged period of downtime. During this time, the network was unable to resolve a proper quorum to form consensus and resume block production. This post will serve as a look at what caused the issue, how it was corrected, and several lessons learned in the process.
As many may know, ARK V1 has had a long history of issues with double forging and its impact on the network. Double forging is any instance where the delegate assigned to forge a block attempts to do so twice in the same block. This behavior is not allowed by the network and as such, this block will not be accepted by their peers. This double forgery is typically caused by a delegate running two servers simultaneously with the same private key. In most instances, one of the servers would be a primary and the other would be run using a special script that allows it to serve as a form of backup server ready to take over in time of need (i.e. outages to the primary server).
During the morning of Monday the 24th, two delegates inadvertently attempted to double forge due to issues with their VPS provider being used to host their servers. The VPS host was undergoing maintenance and cycling their servers on and off erratically. This caused the failover script to initiate the backup server while the main server came back online resulting in both servers attempting to forge. These two instances of double forging were the initial events that caused the chain reaction that lead to the downtime to the network.
Under normal circumstances, the network would self recover from this type of issue within a number of blocks. In this specific instance, the network hit a perfect storm of issues that caused a prolonged period where the network was unable to gain proper quorum to regain consensus and begin producing new blocks. This was potentially exacerbated by several key factors to include the quick succession double forgers, a low number of high quality active relays to aid in the quorum process, issues with the fast reboot system that upon seeing no new blocks was causing delegate nodes to reboot too quickly, and several smaller issues with the V1 legacy code and how it handles self-repair.
Re-Establishing Consensus
All credit for the eventual solution goes to delegates Moon (Biz_Classic) and Jigsaw (a member of team Del) who developed a solution that allowed the active delegate nodes to regain consensus and re-establish proper block production on the network. This was done through utilizing a series of connected relay nodes to help gain the proper quorum necessary to bring the network back in alignment. We won’t be going into specifics on the method used but have been in coordination to ensure that while we wait for the official release of V2, all parties are prepared in the off-chance that something like this would happen again.
During this process, the network was in a stalled state with no new blocks for a period of hours, but no funds were in danger at any point. For the average user, no action is required. Just know that many of your delegates worked hard through the night to solve the problem and get the network up and running as soon as possible.
As an additional note, we conducted tests against V2 to determine whether the new systems would handle this situation differently. Due to the way V2 handles the double forging issue, the network was not susceptible to the same problem in our testing.
Lessons Learned
There are several key takeaways from this occurrence that I think are important to highlight.
- The delegates did an excellent job being on top of the issue, working to find solutions, and reacting quickly once a method was discovered to fix the network. They once again proved what an invaluable resource they are and how important the delegates are in the DPoS system.
- The development team needs to communicate better during critical moments. This could have been a perfect example to show the power of an open and inclusive development process that combines the experience of the development team with that of the community and delegates to form a more effective response. Unfortunately, the majority of the development team efforts in the heat of the moment were relegated to internal channels. The team was aggressively working on solutions and testing potential methods to recover the network, but doing so in isolation isn’t the right answer. Just like we have worked to improve the overall communication outflow from the ARK Team through our blog, we will work towards improving communication with the Delegates as this is a critical component of the DPoS mechanism.
- V2 is getting closer to release but V1 is still mainnet. While we made the decision to push to V2 and try to get it out as soon as possible, we can’t take all of our attention off of some of the problems that still exist with V1. If there are ways we can minimize issues like these with V1, we must continue to put some effort toward that goal.
- We need to push as a community to incentivize or find some means to encourage quality relay node participation on the network or address how to design a more effective system that incorporates relay nodes while minimizing vectors of attack. This is something we will be discussing moving forward.
While this is just a short list, we will continue to analyze the events of this week and document any potential room for correction and growth. In the meantime, the network is back to normal operations and we will continue to monitor for any future problems.
We would again like to thank our active delegates who were present and stayed up all night to work on a solution. We appreciate your efforts and your dedication to ARK is both respected and invaluable to us.
14
u/FamouslyDisgruntled Sep 26 '18
If the ARK team were serious about building a strong community they would see to it that the greatest contributors were sufficiently rewarded. Some of the ARK delegates have put in enough work that it gives the strong impression they are underappreciated and underpaid (despite receiving tips) considering the solutions they've implemented when the hired devs were either unable or unwilling to fix their own blockchain.
The delegates deserve better treatment than they've received lately. During this escapade many of them put in serious work rescuing the v1 blockchain, with no expectation of payment, whilst the actual devs were seen to be doing nothing. An understandably frustrating situation. This is neither acceptable or sustainable for a crypto built on dpos and it needs better handling as a matter of severe urgency.
2
u/happyandiknow_it Sep 27 '18
Are there too many delegates using the same VPS providers ?
8
u/bacabi Sep 26 '18
Moon saves the world!
8
u/trufearl Sep 26 '18
Can we know which delegates helped out and were quick to respond. Would rather vote for them
4
u/Jarunik Sep 26 '18
Good summery! Thanks
3
u/Myn21 Sep 26 '18
Thanks for the transparency
5
u/calidelegate Delegate calidelegate Sep 26 '18
Thanks for the detailed rundown for the community, Matthew.
3
u/GenRobius Sep 26 '18
Well done Matt. Go Ark!
3
u/lucasin0 Sep 27 '18
The nerve some people have attacking delegates/ the team and spouting incorrect information which they only know 10 % off pisses me the fuck off. How about you sell your little stack of ark and spout on some other subreddit.
0
u/[deleted] Sep 26 '18
[deleted] — view deleted comment