Programmable infrastructure with FlyScript
-
Upload
riverbed-technology -
Category
Technology
-
view
993 -
download
4
description
Transcript of Programmable infrastructure with FlyScript
![Page 1: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/1.jpg)
Programmable Infrastructure with FlyScriptDormain Drewitz
Solutions Marketing Manager
@DormainDrewitz
Now with 50% more awesome!
@fymemon
![Page 2: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/2.jpg)
Why Programmable Infrastructure?
![Page 3: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/3.jpg)
Why Programmable Infrastructure?Every customer has specific needs…
Reporting
Configuratio
n
On it
Long Tail of Unique Needs
Custom IT
Portal
Covered by Today’s Tools
Not Covered by Any Tool
Cloud Service
Deployment
Adaptive Q
oS
Dem
and
Unique requirementsCommon requirements
Alerts
Custom R
esponse
to Security
Alert
Enabled by
programmable
infrastructure
![Page 4: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/4.jpg)
The Evolution of FlyScript
Stingray TrafficScrip
t and Community
More REST APIs, SDKs,
widgets, modules, e
tc.
FlyScript P
ortal
OPNET/Stingray TM
FlyScript P
ython SDK
Developer Community
FlyScript R
EST APIs
•Cascade Shark, C
ascade Profiler, S
tingray TM
10+ Year History
Today!
*Timeline is for illustrative purposes only
![Page 5: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/5.jpg)
FlyScript – Programmability at All Layers
Granite
RPM Profiler
Steelhead
RPM SharkStingray TM
WhitewaterRouters
Switches
Servers
Custom Widgetsand UI Integrations
Scripts, Modules, and Python SDK
REST APIDevelopers
Casual CodersApplication Programmers
RiverbedCommunity
$ hosts-bw.py10.1.1.2 525192.168.1.1 650
StingrayTrafficScript
Data Plane
Control Plane
Administrators
![Page 6: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/6.jpg)
Riverbed FlyScript – Enabling Programmable Infrastructure
• REST APIs and SDKs enable custom integrations• Visualize and control on their terms• Advanced processing with their own tools
Let customers decide how to manage their infrastructure
• Pull data from multiple sources• Push configuration to multiple targets
Seamless cross product integration
• Developers get direct access to the nuts and bolts• Operators implement useful tools in 10 lines of Python• Integrators pull together a custom portal in a few clicks
Ease of use for all users
![Page 7: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/7.jpg)
Example: Custom IT Portal
Data CenterBoston
Profiler
Stingray TM
WAN
San Francisco
Steelhead
Shark
Servers
Users
Key data spread across many sources
Pull together all sources Build custom widgets Drill-down as needed
Profiler
Shark-SF
Shark-Bos
Shark-DC
SH-SF
SH-Bos
SH-DC1
SH-DC2
Stingray TM
FW-DC
SLA-Bos
SLA-SF
Web-Srvrs
DB-Srvs
App-Srvs
Custom IT Portal
![Page 9: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/9.jpg)
TRY IT TODAY!!
● FlyScript Portal v0.1 – now available on GitHub and Splash!1. Start by installing the Python SDK2. Install or verify that required packages are installed3. Then install the FlyScript Portal application4. Configure with the address of a Cascade Profiler and/or Cascade
Shark
● Accelerate with FlyScript Virtual Machine1. download and install locally:
• VirtualBox• VirtualBox Extension Pack• Vagrant• git or one of the Github GUI clients: OSX, Windows,
or Eclipse2. Run one command to install a new VM with FlyScript, FlyScript Portal,
and IPython installed3. Configure with your Riverbed
![Page 10: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/10.jpg)
Example: OPNET + Stingray
● Leverage FlyScript to tie together multiple products
● Bring advanced metrics to the web ops crowd
● Integrate into “continuous deployment” for automated QA and verification
1. ConfigureTrafficScript
Stingray TMUsers
2. Inject JSinto session
3. Collect pageload times
Web Servers
Web Pages
![Page 11: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/11.jpg)
11
Stingray, OPNET, and FlyScriptFaisal Memon
©2013 Riverbed Technology. All rights reserved. Riverbed and any Riverbed product or service name or logo used herein are trademarks of Riverbed Technology. All other trademarks used herein belong to their respective owners. The trademarks and logos displayed herein may not be used without the prior written consent of Riverbed Technology or their respective owners.
![Page 12: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/12.jpg)
Copyright Riverbed Technology 12
Overview
● Use FlyScript and Stingray Traffic Manager to automatically inject OPNET AppResponse JavaScript
● What is Stingray Traffic Manager?– Layer 7 Application Delivery Controller– Front ends application servers
● What is OPNET AppResponse Xpert BrowserMetrix?– Monitors end-user experience for web applications– Identify application performance problems– Requires a JavaScript snippet to be added on pages to
monitored
Download the Developer Edition
for free
![Page 13: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/13.jpg)
Copyright Riverbed Technology 13
Typical Process
● Often a manual process
● Maintenance issues
● Web developers copy and paste JavaScript code to all web pages
● Applies to all JavaScript based analytics services
![Page 14: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/14.jpg)
Copyright Riverbed Technology 14
Enter FlyScript and Stingray
● Stingray TrafficScript can be used to modify the contents of any web page– Use TrafficScript to add the JavaScript snippet to all web pages
● FlyScript can be used to manage Stingray– Use FlyScript to configure Stingray to add the JavaScript snippet
to all web pages
● Fully automated
![Page 15: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/15.jpg)
Copyright Riverbed Technology 15
How to get started
● Prerequisites:– Linux based Operating System– Python installed on your system
• Usually installed by default• apt-get install python
![Page 16: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/16.jpg)
Copyright Riverbed Technology 16
How to get started
● Visit splash.riverbed.com/flyscript
![Page 17: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/17.jpg)
Copyright Riverbed Technology 17
How to get started
● Download the tar ball
![Page 18: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/18.jpg)
Copyright Riverbed Technology 18
How to get started
● Untar it: tar zxvf flyscript-0.5.3.tar.gz
● cd flyscript-0.5.3
● python setup.py install
● python examples/flyscript-about.py– To test the installation
![Page 19: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/19.jpg)
Copyright Riverbed Technology 19
Back to OPNET AppResponse
python examples/stingray/appresponse_setup.py STINGRAY_HOSTNAME -u admin -p password --clientid=ABCD1234EFGH5678 --appid=123456 --vserver=nl --host=www.northernlightsastronomy.com
● STINGRAY_HOSTNAME: Stingray IP or hostname
● -u/-p: login/password
● clientid/appid: AppResponse Application settings page
● vserver: Stingray Virtual Server to use
● host: (optional) restrict to a particular host
![Page 20: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/20.jpg)
Copyright Riverbed Technology 20
Back to OPNET AppResponse
python examples/stingray/appresponse_setup.py STINGRAY_HOSTNAME -u admin -p password --clientid=ABCD1234EFGH5678 --appid=123456 --vserver=nl --host=www.northernlightsastronomy.com
● STINGRAY_HOSTNAME: Stingray IP or hostname
● -u/-p: login/password
● clientid/appid: AppResponse Application settings page
● vserver: Stingray Virtual Server to use
● host: (optional) restrict to a particular host
![Page 21: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/21.jpg)
Copyright Riverbed Technology 21
Functionality is not restricted to OPNET
● Anything that requires a JavaScript snippet to be added– Google Analytics– Webtrends– Get Clicky– Etc.
![Page 22: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/22.jpg)
Example: Software-defined Service Management
● Integrate with orchestration software for one-click provisioning
● Enable self-service portals for virtual data center deployment
● Support configuration within virtual data centers
Boston
WAN
San Francisco
Users
FlyScript Daemon
Virtual Data Center
Stingray TM
Web Servers App ServersCloud SH
Virtual Data Center
Profiler Shark
Web ServersDB Servers
Stingray TM
Cloud SH
![Page 23: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/23.jpg)
Software-defined data center
CASE STUDY
It’s very easy to introduce new services to our
customers without needing programmers to develop
and implement them. Mogul is all in on Dev-Ops;
and with the help of virtualization technologies, we
are able to treat much of our infrastructure as code.
This gives us the benefit to deliver new services to
our customers without the need for installing new
hardware, developing custom software, or
experiencing service interruption. Stingray really
helps us with this.
“
”– Johannes Blome, business director of Mogul Cloud Services
IMPROVED… customer experience
REDUCED… time to introduce new services
ACHIEVED… migration to new hosting platform
DECREASED… server hardware costs
Read the complete case study
![Page 24: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/24.jpg)
General Applications of FlyScript
•Copy / paste / modify•Repetitive tasks, simplify executionScripting•“Single pane of glass”•Restricted configuration and monitoring
Custom Visibility and Control
•QA Testing / Development – “Continuous deployment”•Reduce downtime, document processesAutomation•Third-party management tools, custom software•Cross-product capabilitiesIntegration•Create Provision Monitor Destroy•Manage licensing, users, configurationSDN/SDDC
![Page 25: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/25.jpg)
FlyScript on the Splash Community
![Page 26: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/26.jpg)
FlyScript on the Splash Community
DiscussionForums
Rich ContentVideo Tutorials
Configuration Guides
Developer FriendlyScript CollaborationSyntax Highlighting
Submit IdeasFeature RequestsCommunity Votes
Product BlogsProduct and Feature
Announcements
Social FeaturesFollow users
Follow content
User Group Community
RCSPCommunity
Mobile Application
![Page 27: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/27.jpg)
Connect with FlyScript Experts!
● Rick Nelson has been posting a series on using the Stingray REST control API with Python, Ruby and Perl.
● Owen Garrett has been sharing TrafficScript examples and using FlyScript to create a new Stingray TM service.
● Chris White has written a series on interactive coding with IPython (parts 1 and 2)
● Mike Garabedian has posted about FlyScript VM and OAuth Support
● Faisal Memon has shared deployment guides for integrating OPNET ARX BrowserMetrix with Stingray and the Stingray Traffic Manager Puppet Module
![Page 28: Programmable infrastructure with FlyScript](https://reader035.fdocuments.in/reader035/viewer/2022070313/554a150fb4c90507558b506e/html5/thumbnails/28.jpg)