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
Conversation
iulianpascalau
commented
Jan 7, 2021
- 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
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") |
There was a problem hiding this comment.
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"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
cmd/node/config/config.toml
Outdated
@@ -625,7 +625,8 @@ | |||
MessagesMarshalizer = "json" | |||
MaxLoopTime = 1000 | |||
[VirtualMachine.Querying] | |||
OutOfProcessEnabled = false | |||
OutOfProcessEnabled = true |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
added trace log for invalid transaction
07685a3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
System tests passed