Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
- description: nuro
- imports: ['tosca-normative-types:1.0.0.wd06-SNAPSHOT']
- topology_template:
- node_templates:
- www:
- type: org.apache.brooklyn.entity.php.httpd.PhpHttpdServer
- properties:
- language: PHP
- autoscale: true
- php_version:
- constraints:
- - {greater_or_equal: '5.1'}
- - {less_or_equal: '5.5'}
- credentials_file: db.props
- config.file: /config/config_template.php
- config.params: {g_DatabaseHost: '$brooklyn:component("db").attributeWhenReady("host.name")',
- g_DatabaseName: database1, g_DatabaseUser: brooklyn, g_DatabasePassword: br00k11n}
- git.url: https://seacldem:seaclouds@bitbucket.org/seaclDem/nuro-casestudy.git
- requirements:
- - {host: Amazon_EC2_t1_micro_eu_west_1}
- db:
- type: org.apache.brooklyn.entity.database.mysql.MySqlNode
- properties:
- autoscale: false
- creationScriptUrl: https://www.dropbox.com/s/rp7owcgyhaa692f/create.sql?dl=1
- mysql_version:
- constraints:
- - {greater_or_equal: '5'}
- - {less_or_equal: '5.6'}
- requirements:
- - {host: Amazon_EC2_c4_8xlarge_us_gov_west_1}
- Amazon_EC2_t1_micro_eu_west_1:
- type: tosca.nodes.Compute
- properties: {num_cpus: 1, country: Ireland, cost: 0.025, hardwareId: t1.micro,
- city: DUBLIN, resource_type: compute, location: aws-ec2, availability: 0.9995,
- region: eu-west-1, ram: 0.61, performance: 174}
- Amazon_EC2_c4_8xlarge_us_gov_west_1:
- type: tosca.nodes.Compute
- properties: {num_cpus: 36, country: United States, performance: 795, cost: 2.1,
- hardwareId: c4.8xlarge, city: PORTLAND, resource_type: compute, location: aws-ec2,
- availability: 0.9995, region: us-gov-west-1, ram: 60}
- modacloudsDc_www:
- requirements:
- - {host: Amazon_EC2_t1_micro_eu_west_1}
- interfaces:
- Standard: {start: 'https://s3-eu-west-1.amazonaws.com/modacloudsdc-start-script/installModacloudsDc.sh'}
- type: seaclouds.nodes.Datacollector
- properties:
- install.latch: $brooklyn:component("www").attributeWhenReady("service.isUp")
- shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_RESOURCES_KEEP_ALIVE_PERIOD: '25',
- MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: www_ID, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68,
- MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: www,
- METRICS: AverageCpuUtilization;AverageRamUtilization, MODACLOUDS_TOWER4CLOUDS_VM_TYPE: Amazon_EC2_t1_micro_eu_west_1,
- MODACLOUDS_TOWER4CLOUDS_DC_SYNC_PERIOD: '10', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68,
- MODACLOUDS_TOWER4CLOUDS_VM_ID: Amazon_EC2_t1_micro_eu_west_1_ID}
- seacloudsDc_www:
- requirements:
- - {host: Amazon_EC2_t1_micro_eu_west_1}
- interfaces:
- Standard: {start: 'https://s3-eu-west-1.amazonaws.com/seaclouds-dc/installSeaCloudsDc.sh'}
- type: seaclouds.nodes.Datacollector
- properties:
- install.latch: $brooklyn:component("www").attributeWhenReady("service.isUp")
- shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: www_ID,
- MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086',
- MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: www, METRICS: NUROServerLastThirtySecondsAverageRunTime;NUROServerLastThirtySecondsPlayerCount;NUROServerLastThirtySecondsRequestCount;NUROServerLastThirtySecondsAverageThroughput;AppAvailability,
- MODULE_PORT: '8080', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68, MODULE_IP: '$brooklyn:component("www").attributeWhenReady("host.address")'}
- modacloudsDc_db:
- requirements:
- - {host: Amazon_EC2_c4_8xlarge_us_gov_west_1}
- interfaces:
- Standard: {start: 'https://s3-eu-west-1.amazonaws.com/modacloudsdc-start-script/installModacloudsDc.sh'}
- type: seaclouds.nodes.Datacollector
- properties:
- install.latch: $brooklyn:component("db").attributeWhenReady("service.isUp")
- shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_RESOURCES_KEEP_ALIVE_PERIOD: '25',
- MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: db_ID, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68,
- MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: db,
- METRICS: AverageCpuUtilization;AverageRamUtilization, MODACLOUDS_TOWER4CLOUDS_VM_TYPE: Amazon_EC2_c4_8xlarge_us_gov_west_1,
- MODACLOUDS_TOWER4CLOUDS_DC_SYNC_PERIOD: '10', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68,
- MODACLOUDS_TOWER4CLOUDS_VM_ID: Amazon_EC2_c4_8xlarge_us_gov_west_1_ID}
- seacloudsDc_db:
- requirements:
- - {host: Amazon_EC2_c4_8xlarge_us_gov_west_1}
- interfaces:
- Standard: {start: 'https://s3-eu-west-1.amazonaws.com/seaclouds-dc/installSeaCloudsDc.sh'}
- type: seaclouds.nodes.Datacollector
- properties:
- install.latch: $brooklyn:component("db").attributeWhenReady("service.isUp")
- shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: db_ID,
- MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086',
- MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: db, METRICS: AppAvailability,
- MODULE_PORT: '8080', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68, MODULE_IP: '$brooklyn:component("db").attributeWhenReady("host.address")'}
- groups:
- operation_www:
- members: [www]
- policies:
- - QoSInfo: {execution_time: 100 ms, benchmark_platform: Amazon_EC2_m1_large_us_east_1,
- type: seaclouds.policies.QoSInfo}
- - dependencies: {operation_db: '20', type: seaclouds.policies.dependencies}
- - AppQoSRequirements:
- response_time: {less_than: 2000.0 ms}
- availability: {greater_than: 0.009899999999999999}
- cost: {less_or_equal: 400.0 euros_per_month}
- workload: {less_or_equal: 3600.0 req_per_min}
- type: seaclouds.policies.AppQoSRequirements
- - QoSRequirements:
- AverageResponseTime: {less_than: 2000.0 ms}
- type: seaclouds.policies.QoSRequirements
- - ExpectedQualityPOC: {expectedExecutionTimePOC: 3.134674418604654, fitnessPOC: 0.7518092805449127,
- expectedCostPOC: 1566.0000000000002, expectedAvailabilityPOC: 0.989999999876252,
- type: seaclouds.policies.ExpectedQualityPOC}
- operation_db:
- members: [db]
- policies:
- - QoSInfo: {execution_time: 15 ms, benchmark_platform: Amazon_EC2_m1_large_us_east_1,
- type: seaclouds.policies.QoSInfo}
- - dependencies: {type: seaclouds.policies.dependencies}
- add_brooklyn_location_Amazon_EC2_c4_8xlarge_us_gov_west_1:
- members: [Amazon_EC2_c4_8xlarge_us_gov_west_1]
- policies:
- - {brooklyn.location: 'aws-ec2:us-gov-west-1'}
- add_brooklyn_location_Amazon_EC2_t1_micro_eu_west_1:
- members: [Amazon_EC2_t1_micro_eu_west_1]
- policies:
- - {brooklyn.location: 'aws-ec2:eu-west-1'}
- monitoringInformation:
- members: [application]
- policies:
- - monitoringrules.information.policy: {id: fc8ff3f9-bd71-457c-bc75-8e10bf6a5d6f,
- type: seaclouds.policies.monitoringrules}
- sla_gen_info:
- members: [application]
- policies:
- - seaclouds.app.information: {id: 6d7b80a0-48e7-4659-96ed-560228bd7151, type: seaclouds.policies.app.information}
- node_types:
- org.apache.brooklyn.entity.php.httpd.PhpHttpdServer:
- derived_from: tosca.nodes.Root
- description: |
- A simple Tomcat server
- properties:
- php.app.name: {type: string, required: false}
- config.file: {type: string, required: false}
- config.params:
- type: map
- required: false
- entry_schema: {type: string}
- git.url: {type: string, required: false}
- tarball.url: {type: string, required: false}
- requirements:
- - {host: tosca.nodes.Compute, type: tosca.relationships.HostedOn}
- org.apache.brooklyn.entity.database.mysql.MySqlNode:
- derived_from: tosca.nodes.Root
- description: |
- A MySQL server
- properties:
- creationScriptUrl: {type: string, required: false}
- requirements:
- - {host: tosca.nodes.Compute, type: tosca.relationships.HostedOn}
- seaclouds.nodes.Datacollector:
- derived_from: tosca.nodes.Root
- description: |
- A simple DC
- properties:
- install_latch: {type: string, required: false}
- shell.env:
- type: map
- required: false
- entry_schema: {type: string}
- requirements:
- - {host: tosca.nodes.Compute, type: tosca.relationships.HostedOn}
- template_name: seaclouds.app.E9sNzDvq
- template_version: 1.0.0-SNAPSHOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement