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

Port thread scheduler and servicehost from UA .NET legacy. #1389

Merged
merged 9 commits into from
May 4, 2021

Conversation

Nyphus
Copy link
Contributor

@Nyphus Nyphus commented Apr 29, 2021

In RequestQueue class constructor the threadpool configuration has been added
in order to handle the minThreadCount and maxThreadCount parameters.
Those parameters are the ones coming from the server config .xml
(MinRequestThreadCount, MaxRequestThreadCount) and at the moment
are not handled in the code.

This modification allows correct setting of the threadpool so that the server can work
with the specified parameters, thus improving performances in a multiclient environment.

Co-Authored-By: macheronte 79026457+macheronte@users.noreply.github.com

In RequestQueue class constructor the threadpool configuration has been added
in order to handle the minThreadCount and maxThreadCount parameters.
Those parameters are the ones coming from the server config .xml
(MinRequestThreadCount, MaxRequestThreadCount) and at the moment
are not handled in the code.

This modification allows correct setting of the threadpool so that the server can work
with the specified parameters, thus improving performances in a multiclient environment.

Co-Authored-By: macheronte <79026457+macheronte@users.noreply.github.com>
@CLAassistant
Copy link

CLAassistant commented Apr 29, 2021

CLA assistant check
All committers have signed the CLA.

mregen and others added 5 commits May 2, 2021 23:48
In RequestQueue class constructor the threadpool configuration has been added
in order to handle the minThreadCount and maxThreadCount parameters.
Those parameters are the ones coming from the server config .xml
(MinRequestThreadCount, MaxRequestThreadCount) and at the moment
are not handled in the code.

This modification allows correct setting of the threadpool so that the server can work
with the specified parameters, thus improving performances in a multiclient environment.

Co-Authored-By: macheronte <79026457+macheronte@users.noreply.github.com>

Co-authored-by: Nyphus <83399280+Nyphus@users.noreply.github.com>
Co-authored-by: macheronte <79026457+macheronte@users.noreply.github.com>
@mregen
Copy link
Contributor

mregen commented May 2, 2021

Hi @Nyphus I ported the .NET legacy thread scheduler back, it should provide better perf, please test if this fix is also a solution...
Also brings servicehost back. Thanks!

@mregen mregen self-assigned this May 2, 2021
@mregen mregen changed the title Add minThreadCount and maxThreadCount management Port thread scheduler and servicehost from UA .NET legacy. May 2, 2021
.editorconfig Outdated
# CA3075: Insecure DTD processing in XML
dotnet_diagnostic.CA3075.severity = warning

# RCS1090: Add call to 'ConfigureAwait' (or vice versa)
dotnet_diagnostic.RCS1090.severity = warning
dotnet_diagnostic.RCS1090.severity = silent
Copy link
Contributor

Choose a reason for hiding this comment

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

caused false warnings in winforms code, where ConfigureAwait cannot be used.

Stack/Opc.Ua.Core/Stack/Server/EndpointBase.cs Outdated Show resolved Hide resolved
@lgtm-com
Copy link

lgtm-com bot commented May 2, 2021

This pull request introduces 1 alert and fixes 4 when merging 782be8b into 7e736d2 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

fixed alerts:

  • 2 for Container contents are never accessed
  • 2 for Useless assignment to local variable

.editorconfig Outdated Show resolved Hide resolved
Copy link
Contributor

@AlinMoldovean AlinMoldovean left a comment

Choose a reason for hiding this comment

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

nice!

set { m_endpointDescription = value; }
}

/// <summary>
/// The types known to the server.
/// Returns the errr of the server.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo - error instead of errr

@lgtm-com
Copy link

lgtm-com bot commented May 4, 2021

This pull request introduces 1 alert and fixes 4 when merging 5111599 into 323c8c9 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

fixed alerts:

  • 2 for Container contents are never accessed
  • 2 for Useless assignment to local variable

@mregen mregen merged commit 244b26e into OPCFoundation:master May 4, 2021
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

4 participants