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
b2483754
Commit
b2483754
authored
10 years ago
by
David Bigagli
Committed by
Morris Jette
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Save the state of scheduled node reboots so they will not be
lost should the slurmctld restart.
parent
f95bb209
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
NEWS
+2
-0
2 additions, 0 deletions
NEWS
src/slurmctld/controller.c
+6
-0
6 additions, 0 deletions
src/slurmctld/controller.c
src/slurmctld/node_mgr.c
+2
-0
2 additions, 0 deletions
src/slurmctld/node_mgr.c
src/slurmctld/proc_req.c
+4
-0
4 additions, 0 deletions
src/slurmctld/proc_req.c
with
14 additions
and
0 deletions
NEWS
+
2
−
0
View file @
b2483754
...
...
@@ -131,6 +131,8 @@ documents those changes that are of interest to users and admins.
-- When creating reservation with CoreCnt check that Slurm
uses SelectType=select/cons_res otherwise don't send the
request to slurmctld and return an error.
-- Save the state of scheduled node reboots so they will not be
lost should the slurmctld restart.
* Changes in Slurm 14.03.6
==========================
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/controller.c
+
6
−
0
View file @
b2483754
...
...
@@ -1300,6 +1300,10 @@ static void _queue_reboot_msg(void)
want_nodes_reboot
=
true
;
continue
;
}
if
(
IS_NODE_COMPLETING
(
node_ptr
))
{
want_nodes_reboot
=
true
;
continue
;
}
if
(
IS_NODE_IDLE
(
node_ptr
)
&&
!
IS_NODE_NO_RESPOND
(
node_ptr
)
&&
!
IS_NODE_POWER_UP
(
node_ptr
))
/* only active idle nodes */
want_reboot
=
true
;
...
...
@@ -1322,6 +1326,7 @@ static void _queue_reboot_msg(void)
reboot_agent_args
->
node_count
++
;
node_ptr
->
node_state
=
NODE_STATE_FUTURE
|
(
node_ptr
->
node_state
&
NODE_STATE_FLAGS
);
node_ptr
->
node_state
&=
~
NODE_STATE_MAINT
;
bit_clear
(
avail_node_bitmap
,
i
);
bit_clear
(
idle_node_bitmap
,
i
);
node_ptr
->
last_response
=
now
;
...
...
@@ -1334,6 +1339,7 @@ static void _queue_reboot_msg(void)
xfree
(
host_str
);
agent_queue_request
(
reboot_agent_args
);
last_node_update
=
now
;
schedule_node_save
();
}
}
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/node_mgr.c
+
2
−
0
View file @
b2483754
...
...
@@ -529,6 +529,8 @@ extern int load_all_node_state ( bool state_only )
mem_spec_limit
;
node_ptr
->
tmp_disk
=
tmp_disk
;
}
if
(
node_state
&
NODE_STATE_MAINT
)
node_ptr
->
node_state
|=
NODE_STATE_MAINT
;
if
(
node_state
&
NODE_STATE_POWER_UP
)
{
if
(
power_save_mode
)
{
node_ptr
->
node_state
|=
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/proc_req.c
+
4
−
0
View file @
b2483754
...
...
@@ -4674,6 +4674,10 @@ inline static void _slurm_rpc_reboot_nodes(slurm_msg_t * msg)
node_ptr
->
node_state
|=
NODE_STATE_MAINT
;
want_nodes_reboot
=
true
;
}
if
(
want_nodes_reboot
==
true
)
schedule_node_save
();
unlock_slurmctld
(
node_write_lock
);
FREE_NULL_BITMAP
(
bitmap
);
rc
=
SLURM_SUCCESS
;
...
...
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