Advertisement
Guest User

Nuro - DAM

a guest
Feb 15th, 2016
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.92 KB | None | 0 0
  1. tosca_definitions_version: tosca_simple_yaml_1_0_0_wd03
  2. description: nuro
  3. imports: ['tosca-normative-types:1.0.0.wd06-SNAPSHOT']
  4. topology_template:
  5.   node_templates:
  6.     www:
  7.       type: org.apache.brooklyn.entity.php.httpd.PhpHttpdServer
  8.       properties:
  9.         language: PHP
  10.         autoscale: true
  11.         php_version:
  12.           constraints:
  13.           - {greater_or_equal: '5.1'}
  14.           - {less_or_equal: '5.5'}
  15.         credentials_file: db.props
  16.         config.file: /config/config_template.php
  17.         config.params: {g_DatabaseHost: '$brooklyn:component("db").attributeWhenReady("host.name")',
  18.           g_DatabaseName: database1, g_DatabaseUser: brooklyn, g_DatabasePassword: br00k11n}
  19.         git.url: https://seacldem:seaclouds@bitbucket.org/seaclDem/nuro-casestudy.git
  20.       requirements:
  21.       - {host: Amazon_EC2_t1_micro_eu_west_1}
  22.     db:
  23.       type: org.apache.brooklyn.entity.database.mysql.MySqlNode
  24.       properties:
  25.         autoscale: false
  26.         creationScriptUrl: https://www.dropbox.com/s/rp7owcgyhaa692f/create.sql?dl=1
  27.         mysql_version:
  28.           constraints:
  29.           - {greater_or_equal: '5'}
  30.           - {less_or_equal: '5.6'}
  31.       requirements:
  32.       - {host: Amazon_EC2_c4_8xlarge_us_gov_west_1}
  33.     Amazon_EC2_t1_micro_eu_west_1:
  34.       type: tosca.nodes.Compute
  35.       properties: {num_cpus: 1, country: Ireland, cost: 0.025, hardwareId: t1.micro,
  36.         city: DUBLIN, resource_type: compute, location: aws-ec2, availability: 0.9995,
  37.         region: eu-west-1, ram: 0.61, performance: 174}
  38.     Amazon_EC2_c4_8xlarge_us_gov_west_1:
  39.       type: tosca.nodes.Compute
  40.       properties: {num_cpus: 36, country: United States, performance: 795, cost: 2.1,
  41.         hardwareId: c4.8xlarge, city: PORTLAND, resource_type: compute, location: aws-ec2,
  42.         availability: 0.9995, region: us-gov-west-1, ram: 60}
  43.     modacloudsDc_www:
  44.       requirements:
  45.       - {host: Amazon_EC2_t1_micro_eu_west_1}
  46.       interfaces:
  47.         Standard: {start: 'https://s3-eu-west-1.amazonaws.com/modacloudsdc-start-script/installModacloudsDc.sh'}
  48.       type: seaclouds.nodes.Datacollector
  49.       properties:
  50.         install.latch: $brooklyn:component("www").attributeWhenReady("service.isUp")
  51.         shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_RESOURCES_KEEP_ALIVE_PERIOD: '25',
  52.           MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: www_ID, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68,
  53.           MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: www,
  54.           METRICS: AverageCpuUtilization;AverageRamUtilization, MODACLOUDS_TOWER4CLOUDS_VM_TYPE: Amazon_EC2_t1_micro_eu_west_1,
  55.           MODACLOUDS_TOWER4CLOUDS_DC_SYNC_PERIOD: '10', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68,
  56.           MODACLOUDS_TOWER4CLOUDS_VM_ID: Amazon_EC2_t1_micro_eu_west_1_ID}
  57.     seacloudsDc_www:
  58.       requirements:
  59.       - {host: Amazon_EC2_t1_micro_eu_west_1}
  60.       interfaces:
  61.         Standard: {start: 'https://s3-eu-west-1.amazonaws.com/seaclouds-dc/installSeaCloudsDc.sh'}
  62.       type: seaclouds.nodes.Datacollector
  63.       properties:
  64.         install.latch: $brooklyn:component("www").attributeWhenReady("service.isUp")
  65.         shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: www_ID,
  66.           MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086',
  67.           MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: www, METRICS: NUROServerLastThirtySecondsAverageRunTime;NUROServerLastThirtySecondsPlayerCount;NUROServerLastThirtySecondsRequestCount;NUROServerLastThirtySecondsAverageThroughput;AppAvailability,
  68.           MODULE_PORT: '8080', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68, MODULE_IP: '$brooklyn:component("www").attributeWhenReady("host.address")'}
  69.     modacloudsDc_db:
  70.       requirements:
  71.       - {host: Amazon_EC2_c4_8xlarge_us_gov_west_1}
  72.       interfaces:
  73.         Standard: {start: 'https://s3-eu-west-1.amazonaws.com/modacloudsdc-start-script/installModacloudsDc.sh'}
  74.       type: seaclouds.nodes.Datacollector
  75.       properties:
  76.         install.latch: $brooklyn:component("db").attributeWhenReady("service.isUp")
  77.         shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_RESOURCES_KEEP_ALIVE_PERIOD: '25',
  78.           MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: db_ID, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68,
  79.           MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: db,
  80.           METRICS: AverageCpuUtilization;AverageRamUtilization, MODACLOUDS_TOWER4CLOUDS_VM_TYPE: Amazon_EC2_c4_8xlarge_us_gov_west_1,
  81.           MODACLOUDS_TOWER4CLOUDS_DC_SYNC_PERIOD: '10', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68,
  82.           MODACLOUDS_TOWER4CLOUDS_VM_ID: Amazon_EC2_c4_8xlarge_us_gov_west_1_ID}
  83.     seacloudsDc_db:
  84.       requirements:
  85.       - {host: Amazon_EC2_c4_8xlarge_us_gov_west_1}
  86.       interfaces:
  87.         Standard: {start: 'https://s3-eu-west-1.amazonaws.com/seaclouds-dc/installSeaCloudsDc.sh'}
  88.       type: seaclouds.nodes.Datacollector
  89.       properties:
  90.         install.latch: $brooklyn:component("db").attributeWhenReady("service.isUp")
  91.         shell.env: {MODACLOUDS_TOWER4CLOUDS_MANAGER_PORT: '8170', MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_ID: db_ID,
  92.           MODACLOUDS_TOWER4CLOUDS_INFLUXDB_IP: 52.48.12.68, MODACLOUDS_TOWER4CLOUDS_INFLUXDB_PORT: '8086',
  93.           MODACLOUDS_TOWER4CLOUDS_INTERNAL_COMPONENT_TYPE: db, METRICS: AppAvailability,
  94.           MODULE_PORT: '8080', MODACLOUDS_TOWER4CLOUDS_MANAGER_IP: 52.48.12.68, MODULE_IP: '$brooklyn:component("db").attributeWhenReady("host.address")'}
  95.   groups:
  96.     operation_www:
  97.       members: [www]
  98.       policies:
  99.       - QoSInfo: {execution_time: 100 ms, benchmark_platform: Amazon_EC2_m1_large_us_east_1,
  100.           type: seaclouds.policies.QoSInfo}
  101.       - dependencies: {operation_db: '20', type: seaclouds.policies.dependencies}
  102.       - AppQoSRequirements:
  103.           response_time: {less_than: 2000.0 ms}
  104.           availability: {greater_than: 0.009899999999999999}
  105.           cost: {less_or_equal: 400.0 euros_per_month}
  106.           workload: {less_or_equal: 3600.0 req_per_min}
  107.           type: seaclouds.policies.AppQoSRequirements
  108.       - QoSRequirements:
  109.           AverageResponseTime: {less_than: 2000.0 ms}
  110.           type: seaclouds.policies.QoSRequirements
  111.       - ExpectedQualityPOC: {expectedExecutionTimePOC: 3.134674418604654, fitnessPOC: 0.7518092805449127,
  112.           expectedCostPOC: 1566.0000000000002, expectedAvailabilityPOC: 0.989999999876252,
  113.           type: seaclouds.policies.ExpectedQualityPOC}
  114.     operation_db:
  115.       members: [db]
  116.       policies:
  117.       - QoSInfo: {execution_time: 15 ms, benchmark_platform: Amazon_EC2_m1_large_us_east_1,
  118.           type: seaclouds.policies.QoSInfo}
  119.       - dependencies: {type: seaclouds.policies.dependencies}
  120.     add_brooklyn_location_Amazon_EC2_c4_8xlarge_us_gov_west_1:
  121.       members: [Amazon_EC2_c4_8xlarge_us_gov_west_1]
  122.       policies:
  123.       - {brooklyn.location: 'aws-ec2:us-gov-west-1'}
  124.     add_brooklyn_location_Amazon_EC2_t1_micro_eu_west_1:
  125.       members: [Amazon_EC2_t1_micro_eu_west_1]
  126.       policies:
  127.       - {brooklyn.location: 'aws-ec2:eu-west-1'}
  128.     monitoringInformation:
  129.       members: [application]
  130.       policies:
  131.       - monitoringrules.information.policy: {id: fc8ff3f9-bd71-457c-bc75-8e10bf6a5d6f,
  132.           type: seaclouds.policies.monitoringrules}
  133.     sla_gen_info:
  134.       members: [application]
  135.       policies:
  136.       - seaclouds.app.information: {id: 6d7b80a0-48e7-4659-96ed-560228bd7151, type: seaclouds.policies.app.information}
  137. node_types:
  138.   org.apache.brooklyn.entity.php.httpd.PhpHttpdServer:
  139.     derived_from: tosca.nodes.Root
  140.     description: |
  141.      A simple Tomcat server
  142.     properties:
  143.       php.app.name: {type: string, required: false}
  144.       config.file: {type: string, required: false}
  145.       config.params:
  146.         type: map
  147.         required: false
  148.         entry_schema: {type: string}
  149.       git.url: {type: string, required: false}
  150.       tarball.url: {type: string, required: false}
  151.     requirements:
  152.     - {host: tosca.nodes.Compute, type: tosca.relationships.HostedOn}
  153.   org.apache.brooklyn.entity.database.mysql.MySqlNode:
  154.     derived_from: tosca.nodes.Root
  155.     description: |
  156.      A MySQL server
  157.     properties:
  158.       creationScriptUrl: {type: string, required: false}
  159.     requirements:
  160.     - {host: tosca.nodes.Compute, type: tosca.relationships.HostedOn}
  161.   seaclouds.nodes.Datacollector:
  162.     derived_from: tosca.nodes.Root
  163.     description: |
  164.      A simple DC
  165.     properties:
  166.       install_latch: {type: string, required: false}
  167.       shell.env:
  168.         type: map
  169.         required: false
  170.         entry_schema: {type: string}
  171.     requirements:
  172.     - {host: tosca.nodes.Compute, type: tosca.relationships.HostedOn}
  173. template_name: seaclouds.app.E9sNzDvq
  174. template_version: 1.0.0-SNAPSHOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement