Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
459e73e5
Commit
459e73e5
authored
Aug 14, 2003
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
Handle scheduling of different weights. The scheduling priority must
still be 0.
parent
187743c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ChangeLog
+35
-0
35 additions, 0 deletions
ChangeLog
with
35 additions
and
0 deletions
ChangeLog
+
35
−
0
View file @
459e73e5
2003-08-15 Per Cederqvist <ceder@ceder.dyndns.org>
Handle scheduling of different weights. The scheduling priority
must still be 0.
* doc/lyskomd.texi (Parameters): Document "Default priority", "Max
priority", "Default weight" and "Max weight".
* src/server/connections.h (Connection): New field: schedule.
* src/server/server-config.c (parameters): Added "Default
priority", "Max priority", "Default weight" and "Max weight".
(require_less_eq): New static function.
(read_configuration): Check the new parameters. For now,
max_priority must be set to 0, since connections.c can only handle
a single priority.
* src/server/param.h (struct kom_par): New fields:
default_priority, max_priority, default_weight, max_weight.
* src/server/internal-connections.c (init_connection): Initialize
the schedule.
* src/server/connections.c (login_request): Set the priority and
weight from param.default_priority and param.default_weight.
(adjust_penalty): Use the weight to reduce the penalty.
(get_scheduling): Return the actual scheduling information from
the connection.
(set_scheduling): Check the priority and weight against
param.max_priority and param.max_weight. Allow the user to change
them, as long as it is done within those limits. Store the new
values in the connection. Note: the current implementation cannot
handle more than one priority. The check for that is made in
server-config.c.
* src/server/testsuite/get-time-often.c (longopts): Added
--priority and --weight.
(main): Handle the new options.
* src/server/testsuite/lyskomd.0/01.exp: The new default weight is
20. The new maximum weight is 100.
* src/server/testsuite/lyskomd.0/03.exp: Ditto.
2003-08-14 Per Cederqvist <ceder@ceder.dyndns.org>
Added the set-scheduling and get-scheduling requests. The current
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment