formats_json.py 9.81 KB
Newer Older
1
class OutputSchemes:
Azat Khuziyakhmetov's avatar
Azat Khuziyakhmetov committed
2
    text = {
3
4
5
6
7
8
9
10
11
12
13
14
15
16
        "type": "dict",
        "path": "",
        "scheme": {
            "job_id": "job.id",
            "general": {
                "user_name": "job.user_name",
                "used_queue": "job.used_queue",
                "submit_time": "job.submit_time",
                "start_time": "job.start_time",
                "end_time": "job.end_time",
                "used_time": "job.run_time",
                "requested_time": "job.requested_time",
                "requested_cu": "job.requested_cu",
                "num_nodes": "job.num_nodes",
17
                "exit_code": "job.exit_code",
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
            },
            "nodes": {
                "type": "list",
                "path": "nodes",
                "scheme": {
                    "node_name": "name",
                    "cpu_time_user": "proc.cpu_time_user",
                    "cpu_time_system": "proc.cpu_time_system",
                    "cpu_time_idle": "proc.cpu_time_idle",
                    "cpu_time_iowait": "proc.cpu_time_iowait",
                    "write_bytes": "proc.write_bytes",
                    "write_count": "proc.write_count",
                    "read_bytes": "proc.read_bytes",
                    "read_count": "proc.read_count",
                    "mem_rss_max": "proc.mem_rss_max",
                    "mem_rss_avg": "proc.mem_rss_avg",
                    "mem_swap_max": "proc.mem_swap_max",
                    "mem_vms": "proc.mem_vms",
                    "cpu_usage": "proc.cpu_usage",
                    "cpu_model": "cpu_model",
                    "sockets": "sockets",
                    "cores_per_socket": "cores_per_socket",
40
41
                    "phys_threads_per_core": "phys_thr_core",
                    "virt_threads_per_core": "virt_thr_core",
42
                    "available_main_mem": "main_mem",
Azat Khuziyakhmetov's avatar
Azat Khuziyakhmetov committed
43
                    "num_cores": "alloc_cu",
44
                    "alloc_mem": "alloc_mem",
45
46
                    "ib_rcv_max": "ib_rcv_max",
                    "ib_xmit_max": "ib_xmit_max",
Azat Khuziyakhmetov's avatar
Azat Khuziyakhmetov committed
47
48
                    "beegfs_read_sum": "beegfs_read_sum",
                    "beegfs_write_sum": "beegfs_write_sum",
49
50
51
52
53
54
55
56
57
58
59
                    "gpus": {
                        "type": "list",
                        "path": "gpus",
                        "scheme": {
                            "bus": "bus",
                            "power_limit": "power_limit",
                            "mem": "mem",
                            "mem_max": "mem_max",
                            "temp_max": "temp_max",
                            "power_max": "power_max",
                            "usage_max": "usage_max",
60
                            "usage_avg": "usage_avg",
61
62
63
64
65
                            "cpu_usage_max": "cpu_usage_max",
                            "cpu_mem_rss_max": "cpu_mem_rss_max",
                            "cpu_proc_total": "cpu_proc_total",
                        }
                    }
66
67
68
69
70
71
                }
            }
        }
    }

    pdf = {
72
73
74
75
76
77
78
79
80
81
82
83
84
85
        "type": "dict",
        "path": "",
        "scheme": {
            "job": {
                "job_id": "job.id",
                "user_name": "job.user_name",
                "used_queue": "job.used_queue",
                "submit_time": "job.submit_time",
                "start_time": "job.start_time",
                "end_time": "job.end_time",
                "used_time": "job.run_time",
                "requested_time": "job.requested_time",
                "requested_cu": "job.requested_cu",
                "num_nodes": "job.num_nodes",
86
                "exit_code": "job.exit_code",
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
            },
            "nodes": {
                "type": "list",
                "path": "nodes",
                "scheme": {
                    "node_name": "name",
                    "cpu_time_user": "proc.cpu_time_user",
                    "cpu_time_system": "proc.cpu_time_system",
                    "cpu_time_idle": "proc.cpu_time_idle",
                    "cpu_time_iowait": "proc.cpu_time_iowait",
                    "write_bytes": "proc.write_bytes",
                    "write_count": "proc.write_count",
                    "read_bytes": "proc.read_bytes",
                    "read_count": "proc.read_count",
                    "mem_rss_max": "proc.mem_rss_max",
                    "mem_rss_avg": "proc.mem_rss_avg",
                    "mem_swap_max": "proc.mem_swap_max",
                    "mem_vms": "proc.mem_vms",
                    "cpu_usage": "proc.cpu_usage",
                    "cpu_model": "cpu_model",
                    "sockets": "sockets",
                    "cores_per_socket": "cores_per_socket",
                    "phys_threads_per_core": "phys_thr_core",
                    "virt_threads_per_core": "virt_thr_core",
                    "available_main_mem": "main_mem",
Azat Khuziyakhmetov's avatar
Azat Khuziyakhmetov committed
112
                    "num_cores": "alloc_cu",
113
                    "alloc_mem": "alloc_mem",
114
115
                    "ib_rcv_max": "ib_rcv_max",
                    "ib_xmit_max": "ib_xmit_max",
Azat Khuziyakhmetov's avatar
Azat Khuziyakhmetov committed
116
117
                    "beegfs_read_sum": "beegfs_read_sum",
                    "beegfs_write_sum": "beegfs_write_sum",
118
119
120
121
122
123
124
125
126
127
128
                    "gpus": {
                        "type": "list",
                        "path": "gpus",
                        "scheme": {
                            "bus": "bus",
                            "power_limit": "power_limit",
                            "mem": "mem",
                            "mem_max": "mem_max",
                            "temp_max": "temp_max",
                            "power_max": "power_max",
                            "usage_max": "usage_max",
129
                            "usage_avg": "usage_avg",
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
                            "cpu_usage_max": "cpu_usage_max",
                            "cpu_mem_rss_max": "cpu_mem_rss_max",
                            "cpu_proc_total": "cpu_proc_total",
                            "dynamic": {
                                "seq_mem_avg": {
                                    "type": "seq",
                                    "path": "seq_mem_avg",
                                    "scheme": "std"
                                },
                                "seq_usage_avg": {
                                    "type": "seq",
                                    "path": "seq_usage_avg",
                                    "scheme": "std"
                                },
                                "seq_temp_avg": {
                                    "type": "seq",
                                    "path": "seq_temp_avg",
                                    "scheme": "std"
                                },
                                "seq_power_avg": {
                                    "type": "seq",
                                    "path": "seq_power_avg",
                                    "scheme": "std"
                                },
                                "seq_cpu_usage_sum": {
                                    "type": "seq",
                                    "path": "seq_cpu_usage_sum",
                                    "scheme": "std"
                                },
                                "seq_cpu_mem_rss_sum": {
                                    "type": "seq",
                                    "path": "seq_cpu_mem_rss_sum",
                                    "scheme": "std"
                                },
                                "seq_cpu_proc_count": {
                                    "type": "seq",
                                    "path": "seq_cpu_proc_count",
                                    "scheme": "std"
                                },
                            }
                        }
                    },
172
173
174
175
176
177
178
179
                    "dynamic": {
                        "node_cpu_usage": {
                            "type": "seq",
                            "path": "seq_cpu_usage",
                            "scheme": "std"
                        },
                        "node_load": {
                            "type": "seq",
180
                            "path": "seq_load_avg",
181
182
                            "scheme": "std"
                        },
183
184
185
186
187
188
189
190
191
192
                        "node_ib_rcv_max": {
                            "type": "seq",
                            "path": "seq_ib_rcv_max",
                            "scheme": "std"
                        },
                        "node_ib_xmit_max": {
                            "type": "seq",
                            "path": "seq_ib_xmit_max",
                            "scheme": "std"
                        },
Azat Khuziyakhmetov's avatar
Azat Khuziyakhmetov committed
193
194
195
196
197
198
199
200
201
202
                        "node_beegfs_read_sum": {
                            "type": "seq",
                            "path": "seq_beegfs_read_sum",
                            "scheme": "std"
                        },
                        "node_beegfs_write_sum": {
                            "type": "seq",
                            "path": "seq_beegfs_write_sum",
                            "scheme": "std"
                        },
203
204
205
206
207
208
209
210
211
212
                        "proc_cpu_usage": {
                            "type": "seq",
                            "path": "proc.seq_cpu_usage",
                            "scheme": "std"
                        },
                        "proc_mem_rss_sum": {
                            "type": "seq",
                            "path": "proc.seq_mem_rss_sum",
                            "scheme": "std"
                        },
213
214
215
216
217
218
219
220
221
222
                        "proc_write_sum": {
                            "type": "seq",
                            "path": "proc.seq_write_sum",
                            "scheme": "std"
                        },
                        "proc_read_sum": {
                            "type": "seq",
                            "path": "proc.seq_read_sum",
                            "scheme": "std"
                        },
223
224
225
226
                    }
                }
            }
        }
227
    }