Refacto slurm configuration into compute/control
This commit is contained in:
		
							parent
							
								
									69bb2128db
								
							
						
					
					
						commit
						5dbbb27c43
					
				| @ -6,6 +6,7 @@ | ||||
|     ./fs.nix | ||||
|     ./hw.nix | ||||
|     ./net.nix | ||||
|     ./slurm.nix | ||||
|     ./ssh.nix | ||||
|     ./users.nix | ||||
|   ]; | ||||
|  | ||||
| @ -1,10 +1,7 @@ | ||||
| { config, pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   imports = [ | ||||
|     ../common/main.nix | ||||
|     ./slurm.nix | ||||
|   ]; | ||||
|   imports = [ ../common/main.nix ]; | ||||
| 
 | ||||
|   # Select the this using the ID to avoid mismatches | ||||
|   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d53566c"; | ||||
|  | ||||
| @ -7,7 +7,7 @@ | ||||
|     ./gitlab-runner.nix | ||||
|     ./monitoring.nix | ||||
|     ./nfs.nix | ||||
|     ./slurm.nix | ||||
|     ./slurm-daemon.nix | ||||
|   ]; | ||||
| 
 | ||||
|   # Select the this using the ID to avoid mismatches | ||||
|  | ||||
							
								
								
									
										10
									
								
								xeon07/slurm-daemon.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								xeon07/slurm-daemon.nix
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,10 @@ | ||||
| { ... }: | ||||
| 
 | ||||
| { | ||||
|   services.slurm = { | ||||
|     server.enable = true; | ||||
|     partitionName = [ | ||||
|       "xeon Nodes=xeon[01-02,07] Default=YES MaxTime=INFINITE State=UP" | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
| @ -1,17 +0,0 @@ | ||||
| { ... }: | ||||
| 
 | ||||
| { | ||||
|   services.slurm = { | ||||
|     client.enable = true; | ||||
|     server.enable = true; | ||||
|     controlMachine = "xeon07"; | ||||
|     clusterName = "owl"; | ||||
|     nodeName = [ | ||||
|       "xeon[01-02,07] Sockets=2 CoresPerSocket=14 ThreadsPerCore=2 Feature=xeon" | ||||
|     ]; | ||||
| 
 | ||||
|     partitionName = [ | ||||
|       "xeon Nodes=xeon[01-02,07] Default=YES MaxTime=INFINITE State=UP" | ||||
|     ]; | ||||
|   }; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user