-
Notifications
You must be signed in to change notification settings - Fork 240
Expand file tree
/
Copy pathDispatchFrame.java
More file actions
75 lines (58 loc) · 2.2 KB
/
DispatchFrame.java
File metadata and controls
75 lines (58 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* Copyright Contributors to the OpenCue Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.imageworks.spcue;
import java.util.Optional;
import com.imageworks.spcue.dispatcher.Dispatcher;
import com.imageworks.spcue.grpc.job.FrameState;
public class DispatchFrame extends FrameEntity implements FrameInterface {
public int retries;
public FrameState state;
public String show;
public String shot;
public String owner;
public Optional<Integer> uid;
public String logDir;
public String command;
public String range;
public int chunkSize;
public String layerName;
public String jobName;
public int minCores;
public int maxCores;
public boolean threadable;
public int minGpus;
public int maxGpus;
public long minGpuMemory;
public int slotsRequired;
// A comma separated list of services
public String services;
// The Operational System this frame is expected to run in
public String os;
// Memory requirement for this frame in Kb
private long minMemory;
// Soft limit to be enforced for this frame in Kb
public long softMemoryLimit;
// Hard limit to be enforced for this frame in Kb
public long hardMemoryLimit;
public void setMinMemory(long minMemory) {
this.minMemory = minMemory;
this.softMemoryLimit = (long) (((double) minMemory) * Dispatcher.SOFT_MEMORY_MULTIPLIER);
this.hardMemoryLimit = (long) (((double) minMemory) * Dispatcher.HARD_MEMORY_MULTIPLIER);
}
public long getMinMemory() {
return this.minMemory;
}
// Parameters to tell rqd whether or not to use Loki for frame logs and which base url to use
public String lokiURL;
}