Thanks to visit codestin.com
Credit goes to github.com

Skip to content

make server threads configurable with server.properties file #9260

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahmedali6
Copy link
Contributor

Description

Fixes: #9161

Types of changes

  • Enhancement (improves an existing feature and functionality)

Feature/Enhancement Scale

  • Minor

How Has This Been Tested?

Tested manually by building and running the server.

How did you try to break this feature and the system with this change?

Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.32%. Comparing base (cb9b313) to head (de779c3).
Report is 529 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9260      +/-   ##
============================================
- Coverage     15.32%   15.32%   -0.01%     
  Complexity    11687    11687              
============================================
  Files          5459     5459              
  Lines        477294   477294              
  Branches      62055    59052    -3003     
============================================
- Hits          73140    73138       -2     
- Misses       396074   396076       +2     
  Partials       8080     8080              
Flag Coverage Δ
uitests 4.19% <ø> (ø)
unittests 16.07% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✖️ debian ✔️ suse15. SL-JID 9978

@DaanHoogland DaanHoogland reopened this Jun 17, 2024
@DaanHoogland
Copy link
Contributor

@blueorangutan package

@blueorangutan
Copy link

@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress.

@blueorangutan
Copy link

Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10321

@DaanHoogland
Copy link
Contributor

@blueorangutan test alma9 kvm-alma9

@blueorangutan
Copy link

@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + kvm-alma9) has been kicked to run smoke tests

@blueorangutan
Copy link

[SF] Trillian test result (tid-10805)
Environment: kvm-alma9 (x2), Advanced Networking with Mgmt server a9
Total time taken: 55648 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr9260-t10805-kvm-alma9.zip
Smoke tests completed. 135 look OK, 2 have errors, 0 did not run
Only failed and skipped tests results shown below:

Test Result Time (s) Test File
test_06_purge_expunged_vm_background_task Failure 331.49 test_purge_expunged_vms.py
test_01_redundant_vpc_site2site_vpn Failure 470.34 test_vpc_vpn.py
test_01_vpc_site2site_vpn Failure 325.52 test_vpc_vpn.py

Copy link
Contributor

@DaanHoogland DaanHoogland left a comment

Choose a reason for hiding this comment

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

clgtm

Copy link
Contributor

@JoaoJandre JoaoJandre left a comment

Choose a reason for hiding this comment

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

LGTM, did not test it

Comment on lines +106 to +107
private int minThreads = 10;
private int maxThreads = 500;
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a small a nitpick, but you don't need to initialize these values, as in the properties.getProperty call you already inform these as default.

Copy link
Contributor

Choose a reason for hiding this comment

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

will you change this @ahmedali6 ? No big deal if you don't, but if you do, you can also comment out the new properties for the same reason.

Copy link

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

Copy link
Contributor

@shwstppr shwstppr left a comment

Choose a reason for hiding this comment

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

code LGTM (w/ a minor comment)

Comment on lines +56 to +58
# Thread pool configuration
threads.min=10
threads.max=500
Copy link
Contributor

Choose a reason for hiding this comment

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

minor - too many places we are setting the default value. This could have been a comment

@shwstppr
Copy link
Contributor

@ahmedali6 can you please address the comments and resolve conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configure server max and min threads.
6 participants