Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SC query service dispatcher #2657

Merged
merged 11 commits into from Jan 7, 2021
Merged

SC query service dispatcher #2657

merged 11 commits into from Jan 7, 2021

Conversation

iulianpascalau
Copy link
Contributor

  • added scQueryServiceDispatcher functionality that can launch a specified number of VMs used in query service and will route each and every request to such generated SC query service in a round-robin fashion

…ified number of VMs used in query service and will route each and every request to such generated SC query service in a round-robin fashion
@sasurobert sasurobert self-requested a review January 7, 2021 15:44
cmd/node/main.go Outdated
) (process.SCQueryService, error) {
numConcurrentVms := generalConfig.VirtualMachine.Querying.NumConcurrentVms
if numConcurrentVms < 1 {
return nil, fmt.Errorf("VirtualMachine.Querying.NumConcurrentVms should be a positive number higher than 1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more than equal instead of "higher"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -625,7 +625,8 @@
MessagesMarshalizer = "json"
MaxLoopTime = 1000
[VirtualMachine.Querying]
OutOfProcessEnabled = false
OutOfProcessEnabled = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could simply delete from here OutOfProcess and have it default on true directly when creating the scquery service

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea, will hardcode it to true

sasurobert
sasurobert previously approved these changes Jan 7, 2021
@bogdan-rosianu bogdan-rosianu self-requested a review January 7, 2021 16:43
added trace log for invalid transaction
sasurobert
sasurobert previously approved these changes Jan 7, 2021
cmd/node/main.go Show resolved Hide resolved
cmd/node/main.go Show resolved Hide resolved
process/transaction/shardProcess.go Show resolved Hide resolved
process/smartContract/scQueryServiceDispatcher_test.go Outdated Show resolved Hide resolved
bogdan-rosianu
bogdan-rosianu previously approved these changes Jan 7, 2021
sasurobert
sasurobert previously approved these changes Jan 7, 2021
LucianMincu
LucianMincu previously approved these changes Jan 7, 2021
Copy link
Contributor Author

@iulianpascalau iulianpascalau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

Copy link
Contributor

@LucianMincu LucianMincu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

System tests passed

@LucianMincu LucianMincu merged commit 4a25de0 into development Jan 7, 2021
@LucianMincu LucianMincu deleted the list-of-scQueryService branch January 7, 2021 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants