Refacto slurm configuration into compute/control
This commit is contained in:
		
							parent
							
								
									69bb2128db
								
							
						
					
					
						commit
						5dbbb27c43
					
				| @ -6,6 +6,7 @@ | |||||||
|     ./fs.nix |     ./fs.nix | ||||||
|     ./hw.nix |     ./hw.nix | ||||||
|     ./net.nix |     ./net.nix | ||||||
|  |     ./slurm.nix | ||||||
|     ./ssh.nix |     ./ssh.nix | ||||||
|     ./users.nix |     ./users.nix | ||||||
|   ]; |   ]; | ||||||
|  | |||||||
| @ -1,10 +1,7 @@ | |||||||
| { config, pkgs, ... }: | { config, pkgs, ... }: | ||||||
| 
 | 
 | ||||||
| { | { | ||||||
|   imports = [ |   imports = [ ../common/main.nix ]; | ||||||
|     ../common/main.nix |  | ||||||
|     ./slurm.nix |  | ||||||
|   ]; |  | ||||||
| 
 | 
 | ||||||
|   # Select the this using the ID to avoid mismatches |   # Select the this using the ID to avoid mismatches | ||||||
|   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d53566c"; |   boot.loader.grub.device = "/dev/disk/by-id/wwn-0x55cd2e414d53566c"; | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ | |||||||
|     ./gitlab-runner.nix |     ./gitlab-runner.nix | ||||||
|     ./monitoring.nix |     ./monitoring.nix | ||||||
|     ./nfs.nix |     ./nfs.nix | ||||||
|     ./slurm.nix |     ./slurm-daemon.nix | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   # Select the this using the ID to avoid mismatches |   # 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