Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
1350a6e7
Commit
1350a6e7
authored
12 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
max slurmdbd queue a function of MaxJobCnt
parent
625537c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/slurmdbd_defs.c
+10
-3
10 additions, 3 deletions
src/common/slurmdbd_defs.c
with
10 additions
and
3 deletions
src/common/slurmdbd_defs.c
+
10
−
3
View file @
1350a6e7
...
@@ -350,6 +350,13 @@ extern int slurm_send_slurmdbd_msg(uint16_t rpc_version, slurmdbd_msg_t *req)
...
@@ -350,6 +350,13 @@ extern int slurm_send_slurmdbd_msg(uint16_t rpc_version, slurmdbd_msg_t *req)
Buf
buffer
;
Buf
buffer
;
int
cnt
,
rc
=
SLURM_SUCCESS
;
int
cnt
,
rc
=
SLURM_SUCCESS
;
static
time_t
syslog_time
=
0
;
static
time_t
syslog_time
=
0
;
static
int
max_agent_queue
=
0
;
/* Whatever our max job count is times that by 2 or
* MAX_AGENT_QUEUE which ever is bigger */
if
(
!
max_agent_queue
)
max_agent_queue
=
MAX
(
MAX_AGENT_QUEUE
,
slurmctld_conf
.
max_job_cnt
*
2
);
buffer
=
pack_slurmdbd_msg
(
req
,
rpc_version
);
buffer
=
pack_slurmdbd_msg
(
req
,
rpc_version
);
...
@@ -363,7 +370,7 @@ extern int slurm_send_slurmdbd_msg(uint16_t rpc_version, slurmdbd_msg_t *req)
...
@@ -363,7 +370,7 @@ extern int slurm_send_slurmdbd_msg(uint16_t rpc_version, slurmdbd_msg_t *req)
}
}
}
}
cnt
=
list_count
(
agent_list
);
cnt
=
list_count
(
agent_list
);
if
((
cnt
>=
(
MAX_AGENT_QUEUE
/
2
))
&&
if
((
cnt
>=
(
max_agent_queue
/
2
))
&&
(
difftime
(
time
(
NULL
),
syslog_time
)
>
120
))
{
(
difftime
(
time
(
NULL
),
syslog_time
)
>
120
))
{
/* Record critical error every 120 seconds */
/* Record critical error every 120 seconds */
syslog_time
=
time
(
NULL
);
syslog_time
=
time
(
NULL
);
...
@@ -372,9 +379,9 @@ extern int slurm_send_slurmdbd_msg(uint16_t rpc_version, slurmdbd_msg_t *req)
...
@@ -372,9 +379,9 @@ extern int slurm_send_slurmdbd_msg(uint16_t rpc_version, slurmdbd_msg_t *req)
if
(
callbacks_requested
)
if
(
callbacks_requested
)
(
callback
.
dbd_fail
)();
(
callback
.
dbd_fail
)();
}
}
if
(
cnt
==
(
MAX_AGENT_QUEUE
-
1
))
if
(
cnt
==
(
max_agent_queue
-
1
))
cnt
-=
_purge_job_start_req
();
cnt
-=
_purge_job_start_req
();
if
(
cnt
<
MAX_AGENT_QUEUE
)
{
if
(
cnt
<
max_agent_queue
)
{
if
(
list_enqueue
(
agent_list
,
buffer
)
==
NULL
)
if
(
list_enqueue
(
agent_list
,
buffer
)
==
NULL
)
fatal
(
"list_enqueue: memory allocation failure"
);
fatal
(
"list_enqueue: memory allocation failure"
);
}
else
{
}
else
{
...
...
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