Skip to content
Snippets Groups Projects
Commit e0fe0f2a authored by Simon's avatar Simon
Browse files

models

parent 491c1764
No related branches found
No related tags found
No related merge requests found
Showing
with 99 additions and 157 deletions
......@@ -27,10 +27,10 @@
<behavior>
<actions xsi:type="servicebehavior:InternalAction">
<resourceDemand id="_r_5EkL4mEeagJ841qEPCYA" characterization="EXPLICIT">
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
<explicitDescription>
<probFunction xsi:type="functions:DoubleLiteral" value="0.0"/>
<probFunction xsi:type="functions:DoubleLiteral" value="1E-25"/>
</explicitDescription>
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
</resourceDemand>
</actions>
<actions xsi:type="servicebehavior:ExternalCallAction">
......@@ -42,10 +42,10 @@
<behavior>
<actions xsi:type="servicebehavior:InternalAction">
<resourceDemand id="_sAL_gL4mEeagJ841qEPCYA" characterization="EXPLICIT">
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
<explicitDescription>
<probFunction xsi:type="functions:DoubleLiteral" value="0.024350699999999996"/>
</explicitDescription>
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
</resourceDemand>
</actions>
<actions xsi:type="servicebehavior:ExternalCallAction">
......@@ -62,10 +62,10 @@
<behavior>
<actions xsi:type="servicebehavior:InternalAction">
<resourceDemand id="_sAN0sL4mEeagJ841qEPCYA" characterization="EXPLICIT">
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
<explicitDescription>
<probFunction xsi:type="functions:DoubleLiteral" value="0.010401648333333334"/>
</explicitDescription>
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
</resourceDemand>
</actions>
<actions xsi:type="servicebehavior:LoopAction">
......@@ -85,8 +85,8 @@
<explicitDescription>
<probFunction xsi:type="functions:ProbabilityMassFunction">
<samples xsi:type="functions:EnumSampleList">
<items value="Branch 1" probability="0.5"/>
<items value="Branch 2" probability="0.5"/>
<items probability="0.5" value="Branch 1"/>
<items probability="0.5" value="Branch 2"/>
</samples>
</probFunction>
</explicitDescription>
......@@ -109,10 +109,10 @@
<behavior>
<actions xsi:type="servicebehavior:InternalAction">
<resourceDemand id="_sAapAb4mEeagJ841qEPCYA" characterization="EXPLICIT">
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
<explicitDescription>
<probFunction xsi:type="functions:DoubleLiteral" value="0.0038935128571428576"/>
</explicitDescription>
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
</resourceDemand>
</actions>
<actions xsi:type="servicebehavior:ExternalCallAction">
......@@ -127,10 +127,10 @@
<behavior>
<actions xsi:type="servicebehavior:InternalAction">
<resourceDemand id="_sAaB8r4mEeagJ841qEPCYA" characterization="EXPLICIT">
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
<explicitDescription>
<probFunction xsi:type="functions:DoubleLiteral" value="0.004741970158730159"/>
</explicitDescription>
<resourceType xsi:type="resourcetype:ProcessingResourceType" href="pathmap://DML_APPLICATIONLEVEL_MODELS/defaultresourcetypes.resourcetype#_3ql5IJB4EeKmfoqNH_-HEA"/>
</resourceDemand>
</actions>
</behavior>
......
WHAT IF 'Processing Units of cpu for _r_ATwL4mEeagJ841qEPCYA' <MULTIPLY 2>
USING dml@'C:\\Users\\Andreas\\Masterpraktikum\\tools-descartes-dml-dev-environment-develop\\git\\dml-examples\\Bookstore\\queries\\extracted.properties';
// WhatIfs currently require absolute file-path to model location
\ No newline at end of file
SELECT svc1.throughput
EVALUATE DOF VARYING '_yiFNMEeqEeSW4Op0B0CyhQ' AS dof <10,20, 30>
FOR SERVICE '_A_DeMEmxEeOPLK3yYyEQWQ' AS svc1
USING dml@'minmodel.properties';
\ No newline at end of file
SELECT svc1.throughput
EVALUATE DOF VARYING 'Population of ClosedWorkload with ID _yiFNMEeqEeSW4Op0B0CyhQ' AS dof <10 .. 30 BY 10>
FOR SERVICE '_A_DeMEmxEeOPLK3yYyEQWQ' AS svc1
USING dml@'minmodel.properties';
\ No newline at end of file
SELECT svc2.avgResponseTime, res1.utilization
EVALUATE DOF
VARYING
'Processing Rate of processingCPU of _I3tj4EnuEeOWVc_o6w1CBw' AS CPU <2> ,
'Population of ClosedWorkload for _yiFNMEeqEeSW4Op0B0CyhQ' AS Population <10 .. 20 BY 10>
FOR SERVICE '_yiFNMEeqEeSW4Op0B0CyhQ' AS svc2, '_I3tj4EnuEeOWVc_o6w1CBw' AS res1
USING dml@'minmodel.properties';
\ No newline at end of file
SELECT
res1.utilization,
svc1.avgResponseTime,
//svc1.responseTime,
//svc1.responseTime80thPrec, svc1.responseTime90thPrec, svc1.responseTime95thPrec, svc1.responseTime99thPrec,
//svc1.responseTimeHistogram,
svc1.throughput,
svc2.avgResponseTime,
// svc2.responseTime,
//svc2.responseTime80thPrec, svc2.responseTime90thPrec, svc2.responseTime95thPrec, svc2.responseTime99thPrec,
//svc2.responseTimeHistogram,
svc2.throughput
EVALUATE DOF
VARYING
'Processing Rate of processingCPU of _I3tj4EnuEeOWVc_o6w1CBw' AS CPU <1, 2> ,
'Population of ClosedWorkload for _yiFNMEeqEeSW4Op0B0CyhQ' AS Population <10, 20>,
'ExponentialDistribution of ClosedWorkload for _yiFNMEeqEeSW4Op0B0CyhQ' < 4 >
FOR SERVICE '_yiFNMEeqEeSW4Op0B0CyhQ' AS svc2, '_I3tj4EnuEeOWVc_o6w1CBw' AS res1, '_A_DeMEmxEeOPLK3yYyEQWQ' AS svc1
USING dml@'minmodel.properties';
// Metrics in comments produce Problems. To see the Exceptions, just un-comment them and run the querie.
\ No newline at end of file
SELECT res1.utilization
EVALUATE DOF VARYING 'AddInstanceTo(_I3tj4EnuEeOWVc_o6w1CBw)'
FOR RESOURCE '_I3tj4EnuEeOWVc_o6w1CBw' AS res1
USING dml@'minmodel.properties';
\ No newline at end of file
WHAT IF
// 'Population of ClosedWorkload with ID _yiFNMEeqEeSW4Op0B0CyhQ' <MULTIPLY 10>,
// 'ExponentialDistribution with ID ClosedWorkload for _yiFNMEeqEeSW4Op0B0CyhQ' <4>
// 'Processing Rate of processingCPU with ID _I3tj4EnuEeOWVc_o6w1CBw' <MULTIPLY 0.5>
// 'ExponentialDistribution of ClosedWorkload with ID _yiFNMEeqEeSW4Op0B0CyhQ' <ADD 0>
'Processing Units of processingCPU with ID _I3tj4EnuEeOWVc_o6w1CBw' <MULTIPLY 5>
SELECT svc2.avgResponseTime FOR SERVICE '_yiFNMEeqEeSW4Op0B0CyhQ' AS svc2
USING dml@'C:\\Users\\Andreas\\Masterpraktikum\\tools-descartes-dml-dev-environment-develop\\git\\dml-examples\\HelloWorldExample\\DQL-Queries\\minmodel.properties';
// WhatIf currently require full path for DML models
// WhatIF currently does not work without SELECT, there is a problem with "responseTimeHistogram"-Metric
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<usageprofile:UsageProfile xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:functions="http://www.descartes.tools/metamodel/functions/1.0" xmlns:usageprofile="http://www.descartes.tools/metamodel/usageprofile/1.0" id="_JKOX8A3eEeWKC634F1E2dQ" name="defaultUsageProfile">
<system href="default.system#_2VzhQAfrEeWZ6sd-cxZM2Q"/>
<usageScenarios id="_gxHCUA3hEeWKC634F1E2dQ" name="defaultUsageScenario">
<scenarioBehavior>
<actions xsi:type="usageprofile:BranchUserAction">
<branches>
<actions xsi:type="usageprofile:SystemCallUserAction" id="UploadSCA_ID" name="UploadSCA">
<providingRole href="default.system#_2VzhQQfrEeWZ6sd-cxZM2Q"/>
<signature href="default.repository#_0f9vEAftEeWZ6sd-cxZM2Q"/>
<inputParameterSettings>
<value>
<probFunction xsi:type="functions:BoxedPDF">
<sample value="0.02083333333" probability="0.0"/>
<sample value="0.04166666666" probability="0.051"/>
<sample value="0.08333333333" probability="0.134"/>
<sample value="0.125" probability="0.193"/>
<sample value="0.16666666666" probability="0.212"/>
<sample value="0.20833333333" probability="0.224"/>
<sample value="0.25" probability="0.186"/>
</probFunction>
</value>
<parameter href="default.repository#//@interfaces.0/@signatures.1/@parameters.0"/>
</inputParameterSettings>
</actions>
</branches>
<branches>
<actions xsi:type="usageprofile:SystemCallUserAction" id="DownloadSCA_id" name="DownloadSCA">
<providingRole href="default.system#_2VzhQQfrEeWZ6sd-cxZM2Q"/>
<signature href="default.repository#_vtuhYAfoEeWZ6sd-cxZM2Q"/>
<inputParameterSettings>
<value>
<probFunction xsi:type="functions:ProbabilityMassFunction">
<samples xsi:type="functions:IntSampleList">
<items value="2" probability="0.2"/>
<items value="5" probability="0.2"/>
<items value="8" probability="0.3"/>
<items value="11" probability="0.3"/>
</samples>
</probFunction>
</value>
<parameter href="default.repository#//@interfaces.0/@signatures.0/@parameters.0"/>
</inputParameterSettings>
</actions>
</branches>
<branchingProbabilities>
<probFunction xsi:type="functions:ProbabilityMassFunction">
<samples xsi:type="functions:EnumSampleList">
<items value="Branch1" probability="0.2"/>
<items value="Branch2" probability="0.8"/>
</samples>
</probFunction>
</branchingProbabilities>
</actions>
</scenarioBehavior>
<workloadType xsi:type="usageprofile:ClosedWorkloadType" population="1">
<thinkTime>
<probFunction xsi:type="functions:DoubleLiteral" value="0.0"/>
</thinkTime>
</workloadType>
</usageScenarios>
</usageprofile:UsageProfile>
<?xml version="1.0" encoding="UTF-8"?>
<usageprofile:UsageProfile xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:functions="http://www.descartes.tools/metamodel/functions/1.0" xmlns:usageprofile="http://www.descartes.tools/metamodel/usageprofile/1.0" id="_JKOX8A3eEeWKC634F1E2dQ" name="defaultUsageProfile">
<system href="default.system#_2VzhQAfrEeWZ6sd-cxZM2Q"/>
<usageScenarios id="_gxHCUA3hEeWKC634F1E2dQ" name="defaultUsageScenario">
<scenarioBehavior>
<actions xsi:type="usageprofile:BranchUserAction">
<branches>
<actions xsi:type="usageprofile:SystemCallUserAction" id="UploadSCA_ID" name="UploadSCA">
<providingRole href="default.system#_2VzhQQfrEeWZ6sd-cxZM2Q"/>
<signature href="default.repository#_0f9vEAftEeWZ6sd-cxZM2Q"/>
<inputParameterSettings>
<value>
<probFunction xsi:type="functions:BoxedPDF">
<sample value="0.02083333333" probability="0.0"/>
<sample value="0.04166666666" probability="0.051"/>
<sample value="0.08333333333" probability="0.134"/>
<sample value="0.125" probability="0.193"/>
<sample value="0.16666666666" probability="0.212"/>
<sample value="0.20833333333" probability="0.224"/>
<sample value="0.25" probability="0.186"/>
</probFunction>
</value>
<parameter href="default.repository#//@interfaces.0/@signatures.1/@parameters.0"/>
</inputParameterSettings>
</actions>
</branches>
<branches>
<actions xsi:type="usageprofile:SystemCallUserAction" id="DownloadSCA_id" name="DownloadSCA">
<providingRole href="default.system#_2VzhQQfrEeWZ6sd-cxZM2Q"/>
<signature href="default.repository#_vtuhYAfoEeWZ6sd-cxZM2Q"/>
<inputParameterSettings>
<value>
<probFunction xsi:type="functions:ProbabilityMassFunction">
<samples xsi:type="functions:IntSampleList">
<items probability="0.2" value="2"/>
<items probability="0.2" value="5"/>
<items probability="0.3" value="8"/>
<items probability="0.3" value="11"/>
</samples>
</probFunction>
</value>
<parameter href="default.repository#//@interfaces.0/@signatures.0/@parameters.0"/>
</inputParameterSettings>
</actions>
</branches>
<branchingProbabilities>
<probFunction xsi:type="functions:ProbabilityMassFunction">
<samples xsi:type="functions:EnumSampleList">
<items probability="0.2" value="Branch1"/>
<items probability="0.8" value="Branch2"/>
</samples>
</probFunction>
</branchingProbabilities>
</actions>
</scenarioBehavior>
<workloadType xsi:type="usageprofile:ClosedWorkloadType" population="1">
<thinkTime>
<probFunction xsi:type="functions:DoubleLiteral" value="1E-29"/>
</thinkTime>
</workloadType>
</usageScenarios>
</usageprofile:UsageProfile>
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment