210 likes | 340 Views
Azureus Reborn: Cloud-file Converter. Kyle Thurow , Kyle Neuschaefer , Alexander Matusiak , and Justin Carroll. Problem Statement. File conversion can be a computationally intensive task. Takes up many CPU cycles, rendering some computers inoperable
E N D
Azureus Reborn:Cloud-file Converter Kyle Thurow, Kyle Neuschaefer, Alexander Matusiak, and Justin Carroll
Problem Statement • File conversion can be a computationally intensive task. • Takes up many CPU cycles, rendering some computers inoperable • Targets netbooks / weaker computers and power users
What is Cloud-file Converter? • A cloud based sand-box with clearly defined exit and entry paths that can be configured for a wide range of uses • Consists of three main portions of code: • Windows Server 2008 Uploader (ASP.NET & C#) • Linux Head Node (Unix scripting) • Black Box • Our black box for this project is a Java MP3 Conversion Algorithm
Design Requirements • Simple, easy to use • Reusable components • Little to no communication between components • Well defined entry and exit points • Take advantage of the algorithm black box
Design Specification • ASP.NET web pages designed so that limited user input is required • AccessID • SecretAccessID • BucketName • An image of the Webserver was made, so anyone now can take the image and boot it on Amazon • All communication takes places through S3 storage • MP3 algorithm takes advantage of the black box nature of the algorithm
Implementation Linux computational node, Windows Web server, and Conversion Algorithm
Interplay of Components • Everything communicates through Amazon S3 storage • MySQL / SQL server option had been explored • We would have to integrate it into- • Unix scripting • C# and .ASHX / jquery • Java
Windows 2008 File UploaderImplementation microsoft/Microsoft Web Platform - Full Web Server Development Stack (04-11-2010) ami-7b6b3a3e C# and ASP.NET
The Uploader-Design Choices • Written in ASP.NET • Code behind in C# • All files loaded to the server first • By choosing a website all code is executed on the server • Files will exist in memory anyway • Limited ability to view stored S3 files • Instance retrieval gathers files in a class difficult to connect to a gridview
The Uploader • User access key • Secret Access Key • Bucket Name • Credentials are stored on the server • Permanent until next cycle (csv .txt file)
The Uploader • Open source flash uploader • CSS class for button GUI • .ASHX script • Delegate in the C# code for Amazon upload logic • (OnAllComplete) • S3 Upload code • Create bucket • Actual file upload
The Uploader • Difficulties constructing an instance of a datatable and binding it to a GridView • Solution: simply list uploaded files, converted files, and file details according to index
The Uploader • Initiates a download from the server • Any files in the “converted” folder will be downloaded • Issues encountered: .NET security settings • Solution: open privileges for any user
The Image • Windows Web Development Server image released by Microsoft, exclusive to US West • IIS is already preconfigured to host a web site • Remote Desktop provides a simple method to access the computer and change settings on the fly • Microsoft Visual Studio 2010 provides a “web deploy” option for release software • A few tweaks to the web.config file, security settings, and server paths and the website is live.
MP3 Conversion AlgorithmImplementation SoX Unavailable in Amazon repos Lacks mp3 support in fedora repos Fedora missing media libraries Compiled from scratch Converting to oggvorbis audio
Deployment/Usage • Boot up web server and Linux head node. • Go to Cloud-converter webpage. • Upload files. • Wait for files to convert. • Download files.
The Setup • The Uploader • Formed from base Microsoft Web Server image • The Image • Based on Amazon Linux • Add repos, install software • Condor, s3fs
Demonstration • Visual Studio local copy {stable} • ec2-204-236-154-156.us-west-1.compute.amazonaws.com/Welcome.aspx
Evaluation • Cloud • Positives • Source computations away from your computer • Your computer remains useful while important calculations are completed • Negatives • Reliant on internet connectivity • Amazons continuing operation • Local • Positives • Local implementation is more stable, data more secure • Negatives • May render weaker computers useless for extended periods of time