by
Aymeric WeinbachMVP Windows AzureBlog: http://www.zecloud.frTwitter : @aymericwLinkedIn : http://www.linkedin.com/profile/...
CapEx (classic investment model)TIMEITCAPACITYActual LoadAllocatedIT-capacitiesOvercapacityUndercapacityFixed cost ofIT-ca...
Scénarios pour le CloudUtilisationComputeTempsUtilisationInactivitéComputeTempsUtilisation MoyenneUtilisationMoyenneComput...
5 caractéristiques essentielles3 modèles de service4 modèles de déploiementUne modélisation du Cloud ComputingLa vision du...
CapEx vs. OpexTraditional architecture Overcapacity available Additional layers / services might not add extra IT invest...
Mais combien ça coûte ?http://www.windowsazure.com/fr-fr/pricing/calculator/
COMPUTE
Limiting virtual machine count• Do you need full capacity 24/7? Probably not, reduce # cpu’s when not used• Use Windows A...
Limiting virtual machine countDon’t ForgetStaging environment costsWhen not in use, undeploy the staging environment 24 h...
Workers need work!Out of the box, 1 worker role = 1 taskWhy not spin up processes or threads?Example: You want 20 tasks ru...
Do you need all of that?1 XL = 2 L = 4 M = 8 S (regarding costs)No need for this memory / disk space? Start small Scale ...
IMPORTANTBilling per reserved VM Reserved = deployed / runningBilling in staging and production 2 instances staging + 2 ...
Work per hourBilled per clock hour / CPUKeep instances running at least until x:55Don’t deploy at x:50, instead deploy at ...
BANDWIDTH, STORAGE & TRANSACTIONS
Bandwidth?Simple metric Use more = pay more Use less = pay less
When am I using bandwidth?Data transfers in/out Windows Azure Compute Blobs AppFabric SQL AzureData transfers between ...
Content Delivery NetworkContent distributed across 24 Node servers across the worldStorage costs = Storage costs for publi...
Data StorageData you store (non SQL) Tables Blobs QueuesPer GB / monthAverage over full month 10 GB stored for 15 days...
Transactions1 transaction = 1 storage operationBilled per 10.000Example: Checking a queue every second from 2 workers 172...
TransactionsUse Service Bus Queues and NotificationsServing 100 images from blob storage High traffic app  high # transa...
Diagnostics monitorWrites data to storage accountDoes not clean upWrite often = # transactionsWrite less = lag in diagnost...
SQL AZURE
Billing nuancesBased on peak DB size / dayAveraged over 1 monthActual database edition size used is billedExamples 0.9 GB...
Tables & indexes cost moneyBe careful with themOnly define indexes neededIndexing every column & not using it may be a was...
A code snippet...if (Session["culture"].ToString() == "en-US") {// .. set to English ...}if (Session["culture"].ToString()...
Et n’oubliez pas, rejoignez-nousLe groupe Facebook https://facebook.com/groups/zecloudLe twitter http://twitter.com/zecl...
Upcoming SlideShare
Loading in …5
×

Architecture et coût

1,696 views

Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Architecture et coût

  1. 1. by
  2. 2. Aymeric WeinbachMVP Windows AzureBlog: http://www.zecloud.frTwitter : @aymericwLinkedIn : http://www.linkedin.com/profile/view?id=19131743Facebook : http://www.facebook.com/aymeric.weinbachEmail : Aymeric@zecloud.fr
  3. 3. CapEx (classic investment model)TIMEITCAPACITYActual LoadAllocatedIT-capacitiesOvercapacityUndercapacityFixed cost ofIT-capacitiesLoadForecastInvestment
  4. 4. Scénarios pour le CloudUtilisationComputeTempsUtilisationInactivitéComputeTempsUtilisation MoyenneUtilisationMoyenneComputeTempsComputeTempsUtilisation Moyenne
  5. 5. 5 caractéristiques essentielles3 modèles de service4 modèles de déploiementUne modélisation du Cloud ComputingLa vision du NISTSoftware as a Service(SaaS)Platform as a Service(PaaS)Infrastructure as aService (IaaS)Accès réseauétenduElasticité Service mesuré Self-serviceGestion des ressources en PoolPublicPrivéHybrideCommunautaire
  6. 6. CapEx vs. OpexTraditional architecture Overcapacity available Additional layers / services might not add extra IT investmentsCloud architecture No overcapacity Additional layers / servicescost money!
  7. 7. Mais combien ça coûte ?http://www.windowsazure.com/fr-fr/pricing/calculator/
  8. 8. COMPUTE
  9. 9. Limiting virtual machine count• Do you need full capacity 24/7? Probably not, reduce # cpu’s when not used• Use Windows Azure Diagnostics API & Windows Azure Management API to scale (semi)automatically 24 hours x 10 small instances = $28.80/dayvs. 16 hours x 10 small instances+ 8 hours x 4 extra-small instances = $20.48/day
  10. 10. Limiting virtual machine countDon’t ForgetStaging environment costsWhen not in use, undeploy the staging environment 24 hours x 5 small instances = $14.4/day
  11. 11. Workers need work!Out of the box, 1 worker role = 1 taskWhy not spin up processes or threads?Example: You want 20 tasks running Option1: 1 task per worker = 20 workers = ~ 42 EUR/day Option2: 2 tasks per worker = 10 workers = ~ 21 EUR/day Option3: 10 tasks per worker = 2 workers = ~ 4,2 EUR/day Which means ~ 42 EUR / day vs. ~ 4,2 EUR / day = 90% savings“Generic workers”: http://research.microsoft.com/en-us/downloads/76537edf-9b77-4664-b76b-cf51be506a0d/DON’T FORGET: 2 instances minimum for the SLA
  12. 12. Do you need all of that?1 XL = 2 L = 4 M = 8 S (regarding costs)No need for this memory / disk space? Start small Scale up/down more granularly
  13. 13. IMPORTANTBilling per reserved VM Reserved = deployed / runningBilling in staging and production 2 instances staging + 2 instances production = 4 instances billedUndeploy your VM if not needed Undeploy staging every evening Automate this
  14. 14. Work per hourBilled per clock hour / CPUKeep instances running at least until x:55Don’t deploy at x:50, instead deploy at x:55 Deploy at x:50 and undeploy at x+1:10 2 hours billed!Don’t deploy every minute = 60 instance hours per hour! Don’t do continuous deployment for every build, but accumulate
  15. 15. BANDWIDTH, STORAGE & TRANSACTIONS
  16. 16. Bandwidth?Simple metric Use more = pay more Use less = pay less
  17. 17. When am I using bandwidth?Data transfers in/out Windows Azure Compute Blobs AppFabric SQL AzureData transfers between Windows Azure regions E.g. North America – Europe IMPORTANT: Keep compute & storage in the same region!
  18. 18. Content Delivery NetworkContent distributed across 24 Node servers across the worldStorage costs = Storage costs for public containers x 2Bandwidth costs = # data in public containers x # servers Can be limited by setting cache headers
  19. 19. Data StorageData you store (non SQL) Tables Blobs QueuesPer GB / monthAverage over full month 10 GB stored for 15 days, 0 GB stored for 15 days = 5 GB stored for 1 month
  20. 20. Transactions1 transaction = 1 storage operationBilled per 10.000Example: Checking a queue every second from 2 workers 172.800 transactions / dayUse a back-off mechanism No data? Wait a second Again no data? Wait two seconds Etc.
  21. 21. TransactionsUse Service Bus Queues and NotificationsServing 100 images from blob storage High traffic app  high # transactions Choose wisely between blob storage and compute
  22. 22. Diagnostics monitorWrites data to storage accountDoes not clean upWrite often = # transactionsWrite less = lag in diagnostic data
  23. 23. SQL AZURE
  24. 24. Billing nuancesBased on peak DB size / dayAveraged over 1 monthActual database edition size used is billedExamples 0.9 GB in a 5 GB web edition costs 1 GB(= $9.99) 1.1 GB in a 5 GB web edition costs 5 GB(= $49.95)
  25. 25. Tables & indexes cost moneyBe careful with themOnly define indexes neededIndexing every column & not using it may be a waste of moneyExample If an index does not add speed, lose it If the data relational, go NoSQL Table with 1 GB of “static data” on SQL Azure = $ 9.99, on table/blob storage it costs $ 0.12...
  26. 26. A code snippet...if (Session["culture"].ToString() == "en-US") {// .. set to English ...}if (Session["culture"].ToString() == "nl-BE") {// .. set to Dutch ...}string culture = Session["culture"].ToString();if (culture == "en-US") {// .. set to English ...}if (culture == "nl-BE") {// .. set to Dutch ...}
  27. 27. Et n’oubliez pas, rejoignez-nousLe groupe Facebook https://facebook.com/groups/zecloudLe twitter http://twitter.com/zecloudLe site www.zecloud.frLes Azure Campshttp://Zecloud.codeplex.com Tout le code source produit lors des Azure Camps enlicence MS-PL

×