Commit Graph

359 Commits

Author SHA1 Message Date
Chalith Desaman
0d7f52d1e7 Stream contract logs stream to console and log files (#356) 2022-01-11 16:48:15 +05:30
Chalith Desaman
150df0eabb Specify environment variables to contract binary (#355) 2022-01-11 13:41:33 +05:30
Ravin Perera
8dabfb4a2e IP ban refactor with hpws. (#354)
* Refactored corebill.
* Integrated hpws ban tracking.
* Removed session handler helpers.
* Improved bad behaviour reporting.
2021-12-17 07:08:26 +05:30
Savinda Senevirathne
ec3a09a942 Remove dead known peers. (#353)
- Removing unavailable nodes from req known remotes after exceeding failed attempt threshold(10) when peer discovery is enabled.
- Maintaining dead_known_peers to check when merging peer discovery results into known remotes.
- Not broadcasting dead nodes in peer discovery responses.
2021-11-29 14:32:36 +05:30
Chalith Desaman
a2e85551b4 Fix for known peers blank ip issue (#352)
Co-authored-by: ravinsp <33562092+ravinsp@users.noreply.github.com>
2021-11-25 11:53:32 +05:30
ravinsp
9a87307329 Fixed std exception in ip port parse int. 2021-11-02 16:59:14 +05:30
Ravin Perera
c720a777ce Control message to update peers. (#351) 2021-11-02 14:13:21 +05:30
ravinsp
33999f5726 Added hpfs rw release to prepare fs. 2021-10-15 20:59:35 +05:30
Ravin Perera
647759501f Refactored vote status reporting. (#349)
* Refactored global sync status tracking.
* Updated streamer for vote status.
* Docker image now uses 'latest' tag.
* Updated hp version.
2021-09-22 09:28:01 +05:30
Ravin Perera
6dc0776b56 Large cluster optimizations. (#348)
* Added sync log to streamer.
* Fixed ledger closing attempt while syncing.
* Added diagnostic contract.
* Reset to stage 0 on unreliable votes.
* Reduced peer msg age threshold.
* Added health tracking.
* Weakly-connected detection improvement.
* Increased version 0.5.1.
* Improved client lib server version check.
* Added health logging support to text client.
* Added weakly connected status in status response.
* Increased max peers limits when serializing.
* Local docker cluster manual ip.
* Updated vultr script vm region order.
* Sync status reporting improvement.
* Added milliseconds to logging.
2021-09-17 11:53:49 +05:30
Ravin Perera
c686745c81 Fixed long lived known remotes mutex lock. (#346) 2021-08-28 21:22:18 +05:30
Chalith Desaman
d3df42db4e Increased max queue limits from 64 to 254 (#344) 2021-08-19 19:10:54 +05:30
Chalith Desaman
05191a9f32 Updated the hpfs binary (#342) 2021-08-11 16:25:58 +05:30
asela kotagama - aseladk
da813887ca Update hpcore repo and replaced hpfs binary. (#339) 2021-08-03 09:26:30 +05:30
Savinda Senevirathne
4a8726f12a Observer ledger closing issue fix. (#337) 2021-07-29 15:29:59 +05:30
Chalith Desaman
4a5c3554bd Hotpocket version changes (#336) 2021-07-28 16:33:58 +05:30
Savinda Senevirathne
866a617989 concurrent_read_reqeusts typo fix. (#335) 2021-07-22 19:40:29 +05:30
Savinda Senevirathne
e48d0377cb Running post_exec.sh as run_as user. (#333) 2021-07-15 11:20:32 +05:30
Ravin Perera
7b909ed005 Perform contract setuid just before execv. (#332) 2021-07-15 09:26:20 +05:30
Ravin Perera
4790c7951c Refactored docker images. (#331) 2021-07-14 16:27:17 +05:30
Ravin Perera
7ba84e8e7a Ledger close refactor. (#330) 2021-07-14 10:09:13 +05:30
Ravin Perera
d315f9c316 Introduced smart contract run-as user. (#329)
* Added contract run_as config.
* Run smart contract process under the run_as user.
* Integrated run_as user to contract hpfs startup.
2021-06-30 16:15:11 +05:30
Savinda Senevirathne
38ada6f93e Fork condition detection fix. (#328) 2021-06-28 17:03:58 +05:30
Ravin Perera
6a1fb3c5ad Added time based kill switch. (#325) 2021-06-22 11:08:15 +05:30
Savinda Senevirathne
7442c4f111 Rolling contract log files. (#324) 2021-06-22 09:21:15 +05:30
Ravin Perera
c1e1cd12a8 Input responses while syncing. (#323)
* Send pending input responses after syncing.
* Send input statuses on expired inputs.
* Sqlite no journal.
2021-06-12 15:14:21 +05:30
Ravin Perera
aae1617ec0 Metrics script improvements. (#322) 2021-06-09 13:22:14 +05:30
Ravin Perera
9741865027 Limit cap increase. (#320) 2021-06-07 15:41:55 +05:30
Ravin Perera
cc11ebd7b3 Event subscription infrastructure and ledger events. (#319)
- Introduced event subscription infrastructure for users.
- Added ability to subscribe to ledger events.
- Updated client lib for event subscription support.
2021-06-07 10:24:58 +05:30
Ravin Perera
a7b7f6c9de Added user message to get lcl. (#318) 2021-06-04 16:16:22 +05:30
Ravin Perera
33bd63ac64 Status tracking infrastructure. (#317)
* Added node's current status information tracker.
* Used the status tracker for responding to status messages.
* Used change-event notifications to broadcast UNL change event.
2021-06-04 15:08:10 +05:30
Ravin Perera
07962bc3d5 Improvements for larger clsuters. (#316)
- Cluster script improvements.
- Skipped msg too old check unverified peer sessions.
- Moved known peer maintenance to peer loop.
2021-05-30 12:32:51 +05:30
Ravin Perera
7cd56a1475 Consensus proposal pruning improvement. (#314)
Consensus proposal pruning improvement.
hpfs binary fd leak fix.
2021-05-29 12:53:49 +05:30
Ravin Perera
a6dbf1f277 Fixed busy loop issue in hpfs sync. (#313) 2021-05-27 22:41:02 +05:30
Ravin Perera
b172152cba Sync and consensus improvements. (#312)
* Refactored hpfs sync to support parallel target sync.
* Removed role change in consensus.
2021-05-25 21:43:08 +05:30
Chalith Desaman
2bb6be0ce5 Fixed full history hpfs log syncing issues (#311) 2021-05-19 19:06:47 +05:30
Ravin Perera
45492f7c7f Added stage slice config to control stage time allocation. (#310) 2021-05-19 16:59:01 +05:30
Ravin Perera
94b29b9e05 Added genesis fallback on ledger corruption. (#309) 2021-05-18 16:57:51 +05:30
Savinda Senevirathne
5da88aa5c5 Ignoring messages greater than 1MB from peer duplicate message check. (#307) 2021-05-12 14:55:09 +05:30
Savinda Senevirathne
3988828ac7 Remove connection whitelisting on user connect. (#306) 2021-05-12 13:49:10 +05:30
Ravin Perera
4e75b497ec Improvements to vm cluster scripts. (#304)
* Improvements to vm cluster scripts.
* Fixed sync priority change issue.
2021-05-11 09:01:09 +05:30
Ravin Perera
321ae2d753 hpfs binary with optimized write fix. (#303)
* Updated hpfs bin.
* Improved logs.
* Local cluster script log level fix.
2021-05-08 17:51:16 +05:30
Ravin Perera
ef2bb22b67 hpfs sync target refactoring. (#302) 2021-05-04 16:33:19 +05:30
Ravin Perera
fded7b7917 Introduced priority queues for proposal processing. (#301)
* Introduced high priority queue for comm session message processing.
* Added high priority send for proposals.
2021-05-03 21:44:36 +05:30
Ravin Perera
a8ae9c5876 Updated hpfs binary off_t return type fix. Introduced hpfs log level to hp config. (#300)
Updated hpfs binary off_t return type fix. Introduced hpfs log level to hp config
2021-05-02 08:54:40 +05:30
Ravin Perera
4f82afe5b1 Pre-emptive hpfs sync responses. (#299)
Hpfs sync requester reports its own filesystem state to the responder. Responder uses that information to pre-emptively send additional filesystem data the requester may need.
2021-05-01 08:27:42 +05:30
Ravin Perera
505d1ad849 Reacquire hpfs rw session after each sync target completion. (#296) 2021-04-29 10:08:43 +05:30
Ravin Perera
954914e932 Fixed get status peer address formatting crash. (#295) 2021-04-28 14:37:26 +05:30
Ravin Perera
78fb68e064 Peer message flatbuffer parsing fixes. (#294) 2021-04-25 21:16:42 +05:30
Chalith Desaman
05e8077e5b Persisting hpfs log responses to the hpfs (#291)
Fixing the in memory raw shard hash update.
Passing the seq_no of index update to verify that the index records are consistent.
Restart rw session after completing last primary shard sync.
Fixed issue in fs read write by multiple threads.
Hpfs log sync modifications.
2021-04-16 20:06:20 +05:30