| CREATE DATABASE IF NOT EXISTS internal_platform_db; |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.gputj_gpu_info_parsed_query_engine_022 ( |
| `container` STRING, |
| `reason` STRING, |
| `instance` STRING, |
| `node_ip` STRING, |
| `pod` STRING, |
| `asset_id` STRING, |
| `cluster_type` STRING, |
| `source` STRING, |
| `pkg_time` STRING, |
| `cluster_display_name` STRING, |
| `mountpoint` STRING, |
| `node_role` STRING, |
| `cluster_id` STRING, |
| `zone` STRING, |
| `gpu_name` STRING, |
| `cpu_type` STRING, |
| `karmada` STRING, |
| `state` STRING, |
| `uuid` STRING, |
| `value` STRING, |
| `fstype` STRING, |
| `group` STRING, |
| `dedicated` STRING, |
| `business` STRING, |
| `resource` STRING, |
| `hostname` STRING, |
| `gpu` STRING, |
| `pod_name` STRING, |
| `model_name` STRING, |
| `node` STRING, |
| `unit` STRING, |
| `condition` STRING, |
| `container_name` STRING, |
| `metric` STRING, |
| `namespace` STRING, |
| `exported_namespace` STRING, |
| `job` STRING, |
| `device` STRING, |
| `instance_type` STRING, |
| `caelus_type` STRING, |
| `status` STRING, |
| `priority_class` STRING, |
| `workload_kind` STRING, |
| `workload_name` STRING, |
| `dt` STRING |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.gputj_gpu_info_parsed_query_engine_022 VALUES |
| ('c1','','inst1','10.0.0.1','pod1','a1','gpu','src1','1767225600','disp1','','worker','cls1','zone1','A100','x86','','running','uuid1','80.5','','grp1','','biz1','','host1','gpu0','pod-abc-001','model1','node1','','','c1','k8s_container_vgpu_gpu_mem_usage','ns1','','job1','dev1','','','','','','','2026050700'), |
| ('c1','','inst1','10.0.0.1','pod1','a1','gpu','src1','1767225660','disp1','','worker','cls1','zone1','A100','x86','','running','uuid1','82.0','','grp1','','biz1','','host1','gpu0','pod-abc-001','model1','node1','','','c1','k8s_container_vgpu_gpu_mem_usage','ns1','','job1','dev1','','','','','','','2026050700'), |
| ('c1','','inst1','10.0.0.1','pod1','a1','gpu','src1','1767225720','disp1','','worker','cls1','zone1','A100','x86','','running','uuid1','75.0','','grp1','','biz1','','host1','gpu0','pod-abc-001','model1','node1','','','c1','k8s_dcgm_fi_dev_fb_util','ns1','','job1','dev1','','','','','','','2026050700'), |
| ('c1','','inst1','10.0.0.1','pod1','a1','gpu','src1','1767225780','disp1','','worker','cls1','zone1','A100','x86','','running','uuid1','70.0','','grp1','','biz1','','host1','gpu0','pod-abc-001','model1','node1','','','c1','k8s_container_vgpu_gpu_mem_usage','ns1','','job1','dev1','','','','','','','2026050700'), |
| ('c2','','inst2','10.0.0.2','pod2','a2','gpu','src2','1767225900','disp2','','worker','cls2','zone2','V100','x86','','running','uuid2','50.0','','grp2','','biz2','','host2','gpu1','pod-xyz-002','model2','node2','','','c2','k8s_dcgm_fi_dev_fb_util','ns2','','job2','dev2','','','','','','','2026050700'), |
| ('c2','','inst2','10.0.0.2','pod2','a2','gpu','src2','1767225960','disp2','','worker','cls2','zone2','V100','x86','','running','uuid2','55.0','','grp2','','biz2','','host2','gpu1','pod-xyz-002','model2','node2','','','c2','k8s_dcgm_fi_dev_fb_util','ns2','','job2','dev2','','','','','','','2026050700'), |
| ('c3','','inst3','10.0.0.3','pod3','a3','gpu','src3','1767225600','disp3','','worker','cls3','zone3','A100','x86','','running','uuid3','90.0','','grp3','','biz3','','host3','gpu2','pod-def-003','model3','node3','','','c3','k8s_container_vgpu_gpu_mem_usage','ns3','','job3','dev3','','','','','','','2026050700'), |
| ('c3','','inst3','10.0.0.3','pod3','a3','gpu','src3','1767225660','disp3','','worker','cls3','zone3','A100','x86','','running','uuid3','88.0','','grp3','','biz3','','host3','gpu2','pod-def-003','model3','node3','','','c3','k8s_container_vgpu_gpu_mem_usage','ns3','','job3','dev3','','','','','','','2026050700'), |
| ('c3','','inst3','10.0.0.3','pod3','a3','gpu','src3','1767225720','disp3','','worker','cls3','zone3','A100','x86','','running','uuid3','85.0','','grp3','','biz3','','host3','gpu2','pod-def-003','model3','node3','','','c3','k8s_dcgm_fi_dev_fb_util','ns3','','job3','dev3','','','','','','','2026050700'), |
| ('c4','','inst4','10.0.0.4','pod4','a4','gpu','src4','1767225600','disp4','','worker','cls4','zone4','A100','x86','','running','uuid4','60.0','','grp4','','biz4','','host4','gpu3','pod-ghi-004','model4','node4','','','c4','k8s_container_vgpu_gpu_mem_usage','ns4','','job4','dev4','','','','','','','2026050700'), |
| ('c4','','inst4','10.0.0.4','pod4','a4','gpu','src4','1767226200','disp4','','worker','cls4','zone4','A100','x86','','running','uuid4','62.0','','grp4','','biz4','','host4','gpu3','pod-ghi-004','model4','node4','','','c4','k8s_container_vgpu_gpu_mem_usage','ns4','','job4','dev4','','','','','','','2026050700'), |
| ('c5','','inst5','10.0.0.5','pod5','a5','gpu','src5','1767225900','disp5','','worker','cls5','zone5','H100','x86','','running','uuid5','95.0','','grp5','','biz5','','host5','gpu4','pod-jkl-005','model5','node5','','','c5','k8s_container_vgpu_gpu_mem_usage','ns5','','job5','dev5','','','','','','','2026050700'); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_ml_platform_instance_podname_query_engine_022 ( |
| `dt` STRING, |
| `instance_uuid` STRING, |
| `pod_name` STRING, |
| `pod_phase` STRING, |
| `pod_create_time` BIGINT, |
| `pod_update_time` BIGINT, |
| `namespace` STRING, |
| `trial_job_name` STRING, |
| `create_time` BIGINT, |
| `modify_time` BIGINT, |
| `fix_modify_time` BIGINT |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.dwd_ml_platform_instance_podname_query_engine_022 VALUES |
| ('2026050700', 'inst-uuid-aaa', 'pod-abc-001', 'Running', 1767220000, 1767225000, 'ns1', 'job1', 1767220000, 1767225000, 1767225000), |
| ('2026050700', 'inst-uuid-bbb', 'pod-xyz-002', 'Running', 1767220000, 1767225000, 'ns2', 'job2', 1767220000, 1767225000, 1767225000), |
| ('2026050700', 'inst-uuid-aaa', 'pod-def-003', 'Running', 1767220000, 1767225000, 'ns3', 'job3', 1767220000, 1767225000, 1767225000), |
| ('2026050700', 'inst-uuid-ccc', 'pod-ghi-004', 'Running', 1767220000, 1767225000, 'ns4', 'job4', 1767220000, 1767225000, 1767225000), |
| ('2026050700', 'inst-uuid-ddd', 'pod-jkl-005', 'Running', 1767220000, 1767225000, 'ns5', 'job5', 1767220000, 1767225000, 1767225000); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.dwd_task_management_taskinstance2_query_engine_022 ( |
| `databus_imp_date` STRING, |
| `id` BIGINT, |
| `instance_uuid` STRING, |
| `state_start_time` DOUBLE, |
| `state` STRING, |
| `last_celery_script_id` STRING, |
| `create_time` DOUBLE, |
| `last_modify` DOUBLE, |
| `is_succeed` BIGINT, |
| `msg` STRING, |
| `is_restart` BIGINT, |
| `restart_num` BIGINT, |
| `task_id` BIGINT, |
| `template_id` BIGINT, |
| `is_deleted` BIGINT, |
| `debug_num` BIGINT, |
| `is_elasticity` BIGINT, |
| `code` BIGINT, |
| `trainer_version` STRING, |
| `host_gpu_num` DOUBLE, |
| `host_num` DOUBLE, |
| `gpu_name` STRING, |
| `quota_type` STRING, |
| `is_elasticity_config` STRING, |
| `vgpu_card_type` STRING, |
| `location` STRING, |
| `business_tag` STRING, |
| `job_type` STRING |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.dwd_task_management_taskinstance2_query_engine_022 VALUES |
| ('20260507', 1, 'inst-uuid-aaa', 1767220000.0, 'running', 'celery1', 1767210000.0, 1767225500.0, 0, '', 0, 0, 101, 201, 0, 0, 0, 0, 'v1.0', 8.0, 2.0, 'A100', 'dedicated', '', '', 'zone1', 'ml', 'training'), |
| ('20260507', 2, 'inst-uuid-bbb', 1767220000.0, 'running', 'celery2', 1767210000.0, 1767225000.0, 0, '', 0, 0, 102, 202, 0, 0, 0, 0, 'v1.0', 4.0, 1.0, 'V100', 'shared', '', '', 'zone2', 'inference', 'serving'), |
| ('20260507', 3, 'inst-uuid-ccc', 1767220000.0, 'running', 'celery3', 1767210000.0, 1767225200.0, 0, '', 0, 0, 103, 203, 0, 0, 0, 0, 'v2.0', 2.0, 1.0, 'A100', 'dedicated', '', '', 'zone3', 'ml', 'training'), |
| ('20260506', 4, 'inst-uuid-aaa', 1767130000.0, 'running', 'celery4', 1767120000.0, 1767130000.0, 0, '', 0, 0, 101, 201, 0, 0, 0, 0, 'v1.0', 4.0, 1.0, 'A100', 'dedicated', '', '', 'zone1', 'ml', 'training'); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.task_management_taskinstance2_query_engine_022 ( |
| `databus_imp_date` STRING, |
| `id` BIGINT, |
| `instance_uuid` STRING, |
| `state_start_time` DOUBLE, |
| `state` STRING, |
| `last_celery_script_id` STRING, |
| `create_time` DOUBLE, |
| `last_modify` DOUBLE, |
| `is_succeed` BIGINT, |
| `msg` STRING, |
| `is_restart` BIGINT, |
| `restart_num` BIGINT, |
| `task_id` BIGINT, |
| `template_id` BIGINT, |
| `is_deleted` BIGINT, |
| `debug_num` BIGINT, |
| `is_elasticity` BIGINT, |
| `code` BIGINT, |
| `trainer_version` STRING, |
| `host_gpu_num` DOUBLE, |
| `host_num` DOUBLE, |
| `gpu_name` STRING, |
| `quota_type` STRING, |
| `is_elasticity_config` STRING, |
| `vgpu_card_type` STRING, |
| `location` STRING, |
| `business_tag` STRING, |
| `job_type` STRING, |
| `gputj_serving_config` STRING, |
| `gputj_task_config` STRING, |
| `env_vars_dict` STRING |
| ) STORED AS ORC; |
|
|
| INSERT INTO TABLE internal_platform_db.task_management_taskinstance2_query_engine_022 VALUES |
| ('20260507', 10, 'inst-uuid-ddd', 1767220000.0, 'running', 'celery10', 1767210000.0, 1767226000.0, 0, '', 0, 0, 104, 204, 0, 0, 0, 0, 'v3.0', 8.0, 4.0, 'H100', 'dedicated', '', '', 'zone4', 'ml', 'training', '', '', ''), |
| ('20260507', 11, 'inst-uuid-aaa', 1767220000.0, 'running', 'celery11', 1767210000.0, 1767226100.0, 0, '', 0, 0, 101, 201, 0, 0, 0, 0, 'v1.0', 8.0, 2.0, 'A100', 'dedicated', '', '', 'zone1', 'ml', 'training', '', '', ''); |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.task_instance_gpu_time_stats_query_engine_022 ( |
| `instance_uuid` STRING, |
| `time_5min` BIGINT, |
| `host_gpu_num` DOUBLE, |
| `sum_run_time_m` DOUBLE, |
| `gpu_hour` DOUBLE, |
| `gpu_name` STRING, |
| `pod_count` BIGINT, |
| `host_num` DOUBLE |
| ) PARTITIONED BY (`dt` STRING) STORED AS ORC; |
|
|
| |
| CREATE TABLE IF NOT EXISTS internal_platform_db.task_instance_gpu_time_stats_cand_query_engine_022 ( |
| `instance_uuid` STRING, |
| `time_5min` BIGINT, |
| `host_gpu_num` DOUBLE, |
| `sum_run_time_m` DOUBLE, |
| `gpu_hour` DOUBLE, |
| `gpu_name` STRING, |
| `pod_count` BIGINT, |
| `host_num` DOUBLE |
| ) PARTITIONED BY (`dt` STRING) STORED AS ORC; |