2016年1月27日 星期三

Amazon AWS EC2 雲端測試(二)

哈囉~ 大家好久見!!! 2016新年快樂 ^^

相信大家對於新年都有新的期許,太陽哥的新希望就是能把Amazon 的AWS學好!?
各位相信嗎? ~哈 說的連自己都不太敢相信,各位也就聽聽就好。

老實說上個月沒寫 Blog 並不是不認真,實在是前一陣子真的忙到分身乏術。先是忙著去參加 VMware 的年度研討會 -vForum2015,緊接著沒多久就去參加一連4天的 Amazon AWS Training,忙到連寫 Blog 時間都沒有 @@。

話說回來去年參加一天的 AWS Technical Essentials 和接連三天的 Architecting on AWS 的課程之後,真的深深感覺到「書到用時方恨少,事非經過不知難」Amazon 的AWS 如此強大,功能如此齊全,所提供的服務真的是包羅萬象到 "上至外太空、下至行天宮" @@,所以說要是今年真能把 AWS 學好,真的以後都不愁吃穿。不要再 LDS 接下來就開始我們這節的介紹,如何在 AWS 上架設 WAPT 壓測環境,照舊先來一張這節的圖解說明:



Step 1: After login AWS then Create a Instance. Select "EC2"


Step 2: Click "Launch Instance"


Step 3: Click the "Windows Free tier eligible 64-bit"


Step 4: Select "t2.micro(Free tier eligible)" then click "Next: Configure Instance Details"


Step 5: Normally need to configure "Network, Subnet and Auto-assign Public IP" for the access configuration, here keep for Default then click "Next: Add Storage"


Step 6: Can add more storage here for this step please keep for default then click "Next: Tag Instance"



Step 7: Name the Instance for Tag. Type "WAPT Test" for Value then click "Next: Configure Security Group"



Step 8: Select "Create a new security group" then Type select "RDP" for remote, Protocol for "TCP", Port Range is "3389" and Source select "Anywhere(0.0.0.0/0)" after this click "Review and Launch"



Step 9: Check again the configuration then click "Launch"



Step 10: Select "Create a new key pair" and name the Kay pair name "WAPT_RDP_Key" then click "Download Key Pair"



Step 11: After save the key pair at your local then click "Launch Instances"



Step 12: Check the launch status Click "View Instances"



Step 13: Remote the instance Select "WAPT Test" and check Public IP "54.206.5.7" at Description then click "Connect"



Step 14: Click "Download Remote Desktop File" for connect to Windows instance using a remote desktop client file.



Step 15: After download will get a ".rdp" file like "ec2-54-206-5-7.ap-southeast-2.compute.amazonaws.com.rdp"(WAPT_RDP_Key.pem for this instance Key pair)



Step 16: Click "Get Password" to generate password from ".pem" key pair file.



Step 17: Click "選擇檔案" to select the key pair file "WAPT_RDP_Key.pem" from your local machine.



Step 18: Select Key pair file "WAPT_RDP_Key.pem" then click "開啟"



Step 19: Show the key pair content then click "Decrypt Password"



Step 20: Finally get the decryption password then click "Close"



Step 21: Connect the instance double click .rdp file "ec2-54-206-5-7.ap-southeast-2.compute.amazonaws.com.rdp"



Step 22: Check "不要再詢問我是否要連線到這部電腦(O)" then click "連線(N)"



Step 23: Type the Administrator password get from "Step 20" then click "確定"



Step 24: Check "不要再詢問我是否要連線到這部電腦(D)" then click "是(Y)"



Step 25: Connect to the instance.



Step 26: Login by Administrator.



Step 27: After login Windows then double click "waptpro64"



Step 28: Install WAPT Pro 4.0 (64-bit) then click "Next >"


Step 29: Agreement for license please check "Yes, I agree with all the terms of this license agreement" then click "Next >"



Step 30: Click "Next >"



Step 31: Double check "WAPT Pro Workplace" and "Load Agent" then click "Next >"



Step 32:  Select installation path then click "Next >"


Step 33: Load Agent Settings please keep default then click "Next >"

Step 34: Check "Please Shortcut on Desktop" and "Please Shortcut on Quick Launch" then click "Next >"

Step 35: Setup in processing.


Step 36: Double check "Launch Load Agent" and "Launch WAPT Pro" then click "Finish"



Step 37: Congratulation!!! WAPT Pro has been installed and first start WAPT Pro workplace.


Step 38: Check Load Agent is Online.


恭喜各位已經成功地在 AWS EC2 instance 架設起 WAPT Pro 的測試環境。
接下來的測試方法可以參考之前的文章介紹,下次有機會我們再來介紹如何運用WAPT做雲端壓力測試。
接下來的一年如果有什麼關於AWS 的新研究或使用方法,都會盡量寫在這裡的 Blog 分享給各位,跟大家一起成長。這節就先介紹到這裡,我們下次見~ Bye Bye!

~ See you ~

參考出處:
https://aws.amazon.com/tw/



2015年11月26日 星期四

Amazon AWS EC2 雲端測試(一)

哈囉,大家好!

今天要來跟大家談談目前最夯的「雲端技術」,相信大家常常都會聽到一些雲端的名詞,例如:雲端運算、雲端主機、雲端機房、雲端測試等等... 凡事都要跟 "雲端" 兩個字扯上邊就是了。

其實雲端說穿了就是以前我們常常聽到的一個名詞 "網際網路(Internet)",而最後為什麼 Internet 會變成 "雲端",其實就是工程師們在畫系統架構圖時,都會以一朵雲來代表網際網路,久而久之就演變出 "雲端" 這個名詞。

雲端技術就是透過 Internet 連線到遠端伺服器(Server) 使用主機所提供各種服務的技術。

而目前主要的雲端服務,有分成3種:
① 基礎設施即服務(Infrastructure as a Service, 簡稱 IaaS)
提供硬體設施及寬頻網路給企業用戶,例如:中華電信的HiCloud、Amazon EC2等等...

② 平台即服務(Platform as a Service, 簡稱 PaaS)
提供應用程式平台(API)供客戶使用,例如:Google App Engine、Microsoft Azure等等...

③ 軟體即服務(Software as a Service, 簡稱 SaaS)
提供應用軟體直接供使用者(End User)使用,例如:Gmail、Facebook、YouTube等等...

當然還有將 SaaS 的服務衍生到「測試即服務(Testing as a Service, 簡稱 TaaS)」專門提供雲端測試工具做模擬各地使用者的壓力測試,例如:SOASTA、LoadImpact、Spirent Blitz等等...

使用雲端有什麼好處? 對於一般使用者來說,當要分享檔案時不需要再透過硬碟或隨身碟,只需要將檔案放到 Cloud Drive 就可以做分享。或是利用社交軟體分享你的近況或照片給遠方的朋友或家人,這些都是個人使用者運用雲端科技的便利性。

對於企業用戶來說,雲端服務可以幫企業省下一筆可觀的費用,例如:機房的建置、網路頻寬租用、IT管理的人事成本等等... 以上都可以透過雲端服務達到需求。而且雲端服務還有多項好處,就是以量收費,用多少量就收多少費用。還有彈性調整服務的需求,例如:增加主機數量的需求、增加網路的頻寬、或是增加伺服器的服務項目等等... 所以雲端服務對於企業來說是利多於弊,也更符合成本效益。

而今天這一節我們就對 Amazon 的雲端服務來做說明。大家對於 Amazon(亞馬遜)這間公司最主要的印象,應該都還停留在它是全美甚至全球最大的網路書店的記憶當中。其實 Amazon 在 2006年就已經陸續跨足雲端技術的市場,甚至可以說是開起雲端服務的先河,帶動以量計費的新收費模式。

Amazon 雲端服務的統稱是「亞馬遜網路服務(Amazon Web Service, 簡稱 AWS)」,主要的產品有:Amazon EC2(Amazon Elastic Compute Cloud, 是一種 Web 服務,可在雲端提供可調整大小的運算容量)、Amazon S3(Amazon Simple Storage Service, 為開發人員和 IT 小組提供安全、耐久、高可擴展性的物件儲存)、Amazon DynamoDB(是一項快速靈活的 NoSQL 資料庫服務)、AWS Lambda(是一種運算服務,可執行程式碼來回應事件並自動為您管理運算資源,讓您輕鬆建構可快速回應新資訊的應用程式)、AWS Key Management Service(是一項受管服務,該服務透過各種管理控制提供輕鬆加密的功能)等等...

現在就由以下的圖解開始這一節的實作說明:

Step 1: Create a new AWS Account from "http://aws.amazon.com/free/" to click "Sign in to the Console"

Step 2: Enter your Email and select "I am a new user." then click "sign in using our secure server"

 Step 3: Enter the Name, Email and Password then click "Create account"

Step 4: Enter the detail, Security Check and AWS Customer Agreement then click "Create Account and Continue"

Step 5: Enter the credit card detail then click "Continue"

Step 6: After Phone verification, click "continue" then show the successful main page like below.

Step 7: Click "EC2" for create a virtual server.

Step 8: Click "Launch Instance" to create a instance.

Step 9: Whether chose "Free tier eligible" MS Server 2008 or 2012 R2 Base.

Step 10: Select "Free tier eligible" of t2.micro then click "Review and Launch"

Step 11: Review Instance Launch then click "Launch"

Step 12: Select "Create a new key pair" and type a "Key pair name" win2012r2 then click "Download Key Pair" for backup after that click "Launch Instances" for the next step.

Step 13: Save the new created key pair file.

Step 14: Launch Status shows completed the Instances then click "View Instances"

Step 15: Select the new Instances then click "Connect"

Step 16: Click "Download Remote Desktop File" for connect the instances.

Step 17: Save Remote Desktop file 52.34.119.122.rdp then click "Save"

Step 18: Click "Get Password" for Decrypt Password.

Step 19: Click "Select File" to open file win2012r2.pem


Step 20: Click "Decrypt Password" to get the password ;LGM4&Q44Sy then click "Close"



Step 21: Double click the file "52.34.119.122.rdp" to connect the instance.


Step 22: Enter the login password ;LGM4&Q44Sy


Step 23: Finally connect to the remote instance 52.34.119.122

恭喜各位經過了漫長的步驟,相信大家對於 Amazon 的 AWS 已經有了初步的認識。
目前已經成功的在 AWS 平台上建立 Microsoft Windows Server 2012 R2,接著只要在虛擬主機上安裝所需的應用程式,就如同使用機房的遠端主機一般就可以了。

接下來,下一節我們會將 AWS 上的虛擬主機結合 WAPT 做雲端測試運用的說明。這一節就先介紹到這裡,我們下次再見~ 掰掰!

~ See you ~

參考出處:
https://aws.amazon.com/