完整架构的示例 - AWS SimSpace Weaver

本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。

完整架构的示例

以下示例显示了描述SimSpace Weaver模拟的YAML格式文本文件。这些示例包括属性的虚拟值。文件格式因文件中指定的 sdk_version 值而异。有关这些属性及其有效值的完整说明,请参阅架构格式

sdk_version: "1.16" simulation_properties: log_destination_resource_name: "MySimulationLogs" log_destination_service: "logs" default_entity_index_key_type: "Vector3<f32>" default_image: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-ecr-repository:latest" workers: MyComputeWorkers: type: "sim.c5.24xlarge" desired: 3 clock: tick_rate: "30" partitioning_strategies: MyGridPartitioning: topology: "Grid" aabb_bounds: x: [-1000, 1000] y: [-1000, 1000] grid_placement_groups: x: 3 y: 3 domains: MyCustomDomain: launch_apps_via_start_app_call: {} app_config: package: "s3://weaver-myproject-111122223333-us-west-2/MyViewApp.zip" launch_command: ["MyViewApp"] required_resource_units: compute: 1 endpoint_config: ingress_ports: [9000, 9001] MyServiceDomain: launch_apps_per_worker: count: 1 app_config: package: "s3://weaver-myproject-111122223333-us-west-2/MyConnectionServiceApp.zip" launch_command: ["MyConnectionServiceApp"] required_resource_units: compute: 1 endpoint_config: ingress_ports: - 9000 - 9001 MySpatialDomain: launch_apps_by_partitioning_strategy: partitioning_strategy: "MyGridPartitioning" grid_partition: x: 6 y: 6 app_config: package: "s3://weaver-myproject-111122223333-us-west-2/MySpatialApp.zip" launch_command: ["MySpatialApp"] required_resource_units: compute: 1 MySpatialDomainWithCustomContainer: launch_apps_by_partitioning_strategy: partitioning_strategy: "MyGridPartitioning" grid_partition: x: 6 y: 6 app_config: package: "s3://weaver-myproject-111122223333-us-west-2/MySpatialApp2.zip" launch_command: ["MySpatialApp2"] required_resource_units: compute: 1 image: "111122223333.dkr.ecr.us-west-2.amazonaws.com/my-ecr-repository:latest" placement_constraints: - placed_together: ["MySpatialDomain", "MySpatialDomainWithCustomContainer"] on_workers: ["MyComputeWorkers"]