SlideShare a Scribd company logo
PHP, Node.js and Python Deep Dive
Omed Habib, Product Marketing
Agenda
2015
PHP
Node.js
Copyright © 2015 AppDynamics. All rights reserved. 2
Python
Developer Trends
4.2 Sneak Peak
2015 IN REVIEW
4.1 for PHP
Cross App Correlation
Backend Naming Rules
HTTP Data Collectors
PHP 5.6
API Functions
Copyright © 2015 AppDynamics. All rights reserved. 4
4.1 for Node.js
Error Detection Using HTTP Return Codes
Node.js Backends Discovery & Grouping Rules
Object Instance Tracking
Node.js 0.12
API Functions
Copyright © 2015 AppDynamics. All rights reserved. 5
4.1 for Python
Distributed Transaction Correlation
Cross-App Correlation
Custom Match/Exclude Rules
Linux & Mac
OOTB WSGI Framework Support
API Functions
Copyright © 2015 AppDynamics. All rights reserved. 6
PHP DEEP DIVE
Challenge
Multiple PHP “applications” on a
single server
Copyright © 2015 AppDynamics. All rights reserved. 8
api.acme.com
login.acme.com
admin.acme.com
www.acme.com
Copyright © 2015 AppDynamics. All rights reserved. 9
Before
n applications on the same server
=
1 application in AppDynamics
Copyright © 2015 AppDynamics. All rights reserved. 10
Today
n applications on the same server
=
n applications in AppDynamics
Copyright © 2015 AppDynamics. All rights reserved. 11
Copyright © 2015 AppDynamics. All rights reserved. 12
Before
appdynamics_agent.ini
Copyright © 2015 AppDynamics. All rights reserved. 13
Today
appdynamics_agent.ini
httpd.conf
.htaccess
Copyright © 2015 AppDynamics. All rights reserved. 14
More Flexibility with (same) Configs
agent.controller.hostName
agent.controller.port
agent.applicationName
agent.tierName
agent.nodeName
agent.accountName
agent.accountAccessKey
Copyright © 2015 AppDynamics. All rights reserved. 15
Two Separate Apps, Same Server
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
ServerName localhost
ErrorLog "/private/var/log/apache2/error_log"
CustomLog "/private/var/log/apache2/access_log" common
php_value agent.applicationName FrontEnd
php_value agent.tierName FrontTier
php_value agent.nodeName front-node1
</VirtualHost>
Copyright © 2015 AppDynamics. All rights reserved. 16
<VirtualHost *:80>
DocumentRoot "/var/www"
ServerName test.local
<Directory "/var/www">
Options FollowSymLinks Multiviews
AllowOverride Options
Require all granted
</Directory>
ErrorLog "/private/var/log/apache2/error_log"
CustomLog "/private/var/log/apache2/access_log" common
php_value agent.applicationName API
php_value agent.tierName APItier
php_value agent.nodeName api-node1
</VirtualHost>
Copyright © 2015 AppDynamics. All rights reserved. 17
Copyright © 2015 AppDynamics. All rights reserved. 18
Copyright © 2015 AppDynamics. All rights reserved. 19
Multi-Node Support for PHP
Few points to consider…
•  Available for beta after AppSphere
•  4.2 Controller is recommended
•  All apps will share same proxy on server
•  Licenses will stay same (per node) until adjusted
•  Currently in beta, hoping to GA in 4.2
•  Proxy functionality will be replaced with LibAgent in 2016
Copyright © 2015 AppDynamics. All rights reserved. 21
NODE.JS DEEP DIVE
Challenge
Heavy Memory Consumption by
the Node.js Application
Copyright © 2015 AppDynamics. All rights reserved. 23
Memory Leak Diagnostics
V8 Manages Memory
Pro
•  You don’t have to worry
about it.
•  You don’t have to write
code to manage it.
Con
•  You don’t have control
over it.
•  You have to find a way to
find your memory leak.
Copyright © 2015 AppDynamics. All rights reserved. 25
Copyright © 2015 AppDynamics. All rights reserved. 26
Copyright © 2015 AppDynamics. All rights reserved. 27
Copyright © 2015 AppDynamics. All rights reserved. 28
“I can actually say we've had no outages
in production on a Node.js cluster, since
we've been porting over, and I can credit
a large part of that due to the monitoring
of AppDynamics.”
Stace Baal, Director of Engineering
@ eHarmony
Copyright © 2015 AppDynamics. All rights reserved. 29
PYTHON DEEP DIVE
Challenge
A Python Application Executing
Jobs in an Infinite While Loop
Copyright © 2015 AppDynamics. All rights reserved. 31
The Loop
setup()
while (true):
do_work()
teardown()
Copyright © 2015 AppDynamics. All rights reserved. 32
Python Agent API Functions
Copyright © 2015 AppDynamics. All rights reserved. 33
Functions made available
to the application code to
further tailor your APM
solution.
Copyright © 2015 AppDynamics. All rights reserved. 34
from	
  appdynamics.agent	
  import	
  api	
  as	
  appd	
  	
  	
  	
  	
  	
  	
  	
  	
  
setup()	
  
	
  	
  	
  
while	
  (true):	
  
bt_handle	
  =	
  appd.start_bt('do	
  work’)	
  
try:	
  
	
  	
  	
  	
  do_work()	
  
except	
  Exception	
  as	
  exc:	
  
	
  	
  	
  	
  raise	
  
finally:	
  
	
  	
  	
  	
  appd.end_bt(bt_handle,	
  exc)	
  
	
  	
  
teardown()	
  
Custom Exit Calls
Copyright © 2015 AppDynamics. All rights reserved. 35
start_exit_call()
…
end_exit_call()
API Functions
Copyright © 2015 AppDynamics. All rights reserved. 36
•  init(environ=None, timeout_ms=NO_TIMEOUT)
•  shutdown(timeout_ms=None)
•  start_bt(name, correlation_header=None)
•  end_bt(bt_handle, exc=None)
•  add_snapshot_data(bt_handle, key, value)
•  get_active_bt_handle(request)
•  start_exit_call(bt_handle, exit_type, display_name,
identifying_properties, optional_properties=None)
•  end_exit_call(exit_call_handle, exc=None)
•  make_correlation_header(bt_handle, exit_call_handle)
•  bt(name, correlation_header=None)
•  exit_call(bt_handle, exit_type, display_name, identifying_properties,
optional_properties=None)
Copyright © 2015 AppDynamics. All rights reserved. 37
By The Way...
API Functions Are Available Today For
“The new Python agent by AppDynamics
brought the visibility that we’ve come to
expect from the AppDynamics Platform. It
didn't take long for us to qualify that this was
the solution for our deployments of over 3,000
Python instances”
Albert Kemner, Principal Engineer @ Gannett
Copyright © 2015 AppDynamics. All rights reserved. 38
Copyright © 2015 AppDynamics. All rights reserved. 39
DEVELOPER TRENDS
Decoupling Architecture
+
Mindset
=
Merging Teams
Copyright © 2015 AppDynamics. All rights reserved. 41
WHAT’S COMING IN 4.2?
4.2 Roadmap Goal
•  Multi-Node Support
•  SELinux
•  NuSOAP Exit Calls
•  PostgreSQL
Copyright © 2015 AppDynamics. All rights reserved. 43
•  Node.js 4.0 & 5.0
•  Allocation Snapshots
•  Transaction Analytics
•  Heroku Support
•  Windows Support
•  EUM Correlation
•  API Functions
•  Data Collectors
•  MongoDB
Thank You

More Related Content

PDF
Serverless and you @ Women Who Code London 2020
PDF
Acercándonos a la Programación Funcional a través de la Arquitectura Hexag...
PDF
Versioning strategy for a complex internal API (Konstantin Yakushev)
PDF
API first approach for frontend developers
PDF
Building maintainable app
PDF
logcat Hilt
PDF
Writing testable Android apps
PDF
Writing REST APIs with OpenAPI and Swagger Ada
Serverless and you @ Women Who Code London 2020
Acercándonos a la Programación Funcional a través de la Arquitectura Hexag...
Versioning strategy for a complex internal API (Konstantin Yakushev)
API first approach for frontend developers
Building maintainable app
logcat Hilt
Writing testable Android apps
Writing REST APIs with OpenAPI and Swagger Ada

What's hot (20)

PPTX
Advanced angular
PDF
Android 5.0 internals and inferiority complex droidcon.de 2015
PDF
Why your APIs should fly first class
PDF
apidays LIVE New York 2021 - API tool chain for low budget programs by Paul K...
PDF
OpenAPI Spec at Google (Open API Initiative Meetup on 2016-09-15)
PDF
Kasten securing access to your kubernetes applications
PDF
Integrating consumers IoT devices into Business Workflow
PDF
Android Develpment vol. 2, MFF UK, 2015
PDF
WSO2 API Manager Community Call - November 2021
PDF
A friend in need - A JS indeed
PDF
Google cloud endpoints
PDF
RESTful services and OAUTH protocol in IoT
PPTX
Hands on react native
PDF
Build Android App using GCE & GAE
PPT
A Tour of Swagger for APIs
PDF
Building maintainable app #droidconzg
PPTX
EuroPython 2017 - How to make money with your Python open-source project
PDF
Vitaliy Makogon: Migration to ivy. Angular component libraries with IVY support.
PDF
Designing APIs with OpenAPI Spec
ODP
App funnel project status silver boot camp
Advanced angular
Android 5.0 internals and inferiority complex droidcon.de 2015
Why your APIs should fly first class
apidays LIVE New York 2021 - API tool chain for low budget programs by Paul K...
OpenAPI Spec at Google (Open API Initiative Meetup on 2016-09-15)
Kasten securing access to your kubernetes applications
Integrating consumers IoT devices into Business Workflow
Android Develpment vol. 2, MFF UK, 2015
WSO2 API Manager Community Call - November 2021
A friend in need - A JS indeed
Google cloud endpoints
RESTful services and OAUTH protocol in IoT
Hands on react native
Build Android App using GCE & GAE
A Tour of Swagger for APIs
Building maintainable app #droidconzg
EuroPython 2017 - How to make money with your Python open-source project
Vitaliy Makogon: Migration to ivy. Angular component libraries with IVY support.
Designing APIs with OpenAPI Spec
App funnel project status silver boot camp
Ad

Viewers also liked (16)

PPTX
Staffing MS | Leadership | Samenwerken
DOCX
Spcoutono 160927172653
PPTX
Ammonia Wastewater Treatment: Wastewater Treatment Plant (WWTP) Centrate & La...
PPTX
Equipa
PPTX
Presentación lorena gonzalez blog 2016
PDF
Milieuoverzicht: oktober & november 2015
PPTX
Template basics
PDF
The internet is dead, long live the (new) internet, the Blockchain (Dutch Ver...
PDF
Decision Model Canvas
PDF
Using HPC to Advance Water Desalination By Electrodialysis
PDF
Sessie NGI: Back to the future
PPTX
AppSphere 2016 - Automate performance testing with AppDynamics using continuo...
PDF
Optimized Selection of Streaming Servers with GeoDNS for CDN Delivered Live S...
PDF
How AppDynamics Saved Garmin's Christmas! - AppSphere16
PDF
How DixonsCarphone uses AppDynamics Application Analytics to Influence Busine...
PDF
How CapitalOne Transformed DevTest or Continuous Delivery - AppSphere16
Staffing MS | Leadership | Samenwerken
Spcoutono 160927172653
Ammonia Wastewater Treatment: Wastewater Treatment Plant (WWTP) Centrate & La...
Equipa
Presentación lorena gonzalez blog 2016
Milieuoverzicht: oktober & november 2015
Template basics
The internet is dead, long live the (new) internet, the Blockchain (Dutch Ver...
Decision Model Canvas
Using HPC to Advance Water Desalination By Electrodialysis
Sessie NGI: Back to the future
AppSphere 2016 - Automate performance testing with AppDynamics using continuo...
Optimized Selection of Streaming Servers with GeoDNS for CDN Delivered Live S...
How AppDynamics Saved Garmin's Christmas! - AppSphere16
How DixonsCarphone uses AppDynamics Application Analytics to Influence Busine...
How CapitalOne Transformed DevTest or Continuous Delivery - AppSphere16
Ad

Similar to AppSphere 15 - PHP, Node.js and Python Deep Dive (20)

PPTX
Sst hackathon express
PPTX
Add Apache Web Server to your Unified Monitoring Toolkit
PDF
Next-Gen Business Transaction Configuration, Instrumentation, and Java Perfor...
PDF
I Love APIs 2015: Crash Course Foundational Topics in Apigee Edge Workshop
PDF
AppSphere 15 - AppDynamics: Beyond APM - Building an Operations Center
PDF
Device Independent API design
PPTX
Monitoring Cloud Native Apps on Pivotal Cloud Foundry with AppDynamics
PPTX
Webinar - Building Custom Extensions With AppDynamics
PDF
Better Bug Stomping with Zend Studio and Zend Server
PPTX
Advanced REST API Scripting With AppDynamics
PDF
Platform 4.0 Meetup Launch Event
PPTX
Mulesoft Connections to different companies, and different services
PPTX
API Services: Building State-of-the-Art APIs
PDF
Api design best practice
PDF
Getting More Out of the Node.js, PHP, and Python Agents - AppSphere16
PDF
N api-node summit-2017-final
PPTX
N-API NodeSummit-2017
PDF
I Love APIs 2015 API Lab Design-first API Development Using Node and Swagger
PDF
Pivotal + Apigee Workshop (June 4th, 2019)
PPTX
Igor Miniailo - Magento 2 API Design Best Practices
Sst hackathon express
Add Apache Web Server to your Unified Monitoring Toolkit
Next-Gen Business Transaction Configuration, Instrumentation, and Java Perfor...
I Love APIs 2015: Crash Course Foundational Topics in Apigee Edge Workshop
AppSphere 15 - AppDynamics: Beyond APM - Building an Operations Center
Device Independent API design
Monitoring Cloud Native Apps on Pivotal Cloud Foundry with AppDynamics
Webinar - Building Custom Extensions With AppDynamics
Better Bug Stomping with Zend Studio and Zend Server
Advanced REST API Scripting With AppDynamics
Platform 4.0 Meetup Launch Event
Mulesoft Connections to different companies, and different services
API Services: Building State-of-the-Art APIs
Api design best practice
Getting More Out of the Node.js, PHP, and Python Agents - AppSphere16
N api-node summit-2017-final
N-API NodeSummit-2017
I Love APIs 2015 API Lab Design-first API Development Using Node and Swagger
Pivotal + Apigee Workshop (June 4th, 2019)
Igor Miniailo - Magento 2 API Design Best Practices

More from AppDynamics (20)

PPTX
Good Migrations: APM Essentials For Cloud Success at AppD Global Tour London
PPTX
Top Tips For AppD Adoption Success at AppD Global Tour London
PPTX
How To Create An AppD Centre of Excellence at AppD Global Tour London
PPTX
Ensure Every Customer Matters With End User Monitoring at AppD Global Tour Lo...
PPTX
Just Eat: DevOps at Scale at AppD Global Tour London
PPTX
What’s Next For AppDynamics and Cisco? AppD Global Tour London
PPTX
Unlock The Power Of Real-Time Performance Data With Business iQ - AppD Global...
PPTX
Overcoming Transformational Barriers with Ensono - AppD Global Tour London
PPTX
Equinor: What does normal look like?
PPTX
Unlock The Power Of Real-Time Performance Data With Business iQ - AppD Global...
PPTX
Top Tips For AppD Adoption Success - AppD Global Tour Stockholm
PPTX
What's next for AppD and Cisco? - AppD Global Tour
PPTX
Cisco and AppDynamics: Redefining Application Intelligence - AppD Summit Europe
PPTX
British Medical Journal: Refine Your Metrics For Digital Success - AppD Summi...
PPTX
Forrester Research: How To Organise Your Business For Digital Success - AppD ...
PPTX
Mastering APM With End User Monitoring - AppD Summit Europe
PPTX
Become an AppDynamics Dashboard Rockstar - AppD Summit Europe
PPTX
Business iQ: What It Is and How to Start - AppD Summit Europe
PPTX
Containers: Give Me The Facts, Not The Hype - AppD Summit Europe
PPTX
Automation: The Good, The Bad and The Ugly with DevOpsGuys - AppD Summit Europe
Good Migrations: APM Essentials For Cloud Success at AppD Global Tour London
Top Tips For AppD Adoption Success at AppD Global Tour London
How To Create An AppD Centre of Excellence at AppD Global Tour London
Ensure Every Customer Matters With End User Monitoring at AppD Global Tour Lo...
Just Eat: DevOps at Scale at AppD Global Tour London
What’s Next For AppDynamics and Cisco? AppD Global Tour London
Unlock The Power Of Real-Time Performance Data With Business iQ - AppD Global...
Overcoming Transformational Barriers with Ensono - AppD Global Tour London
Equinor: What does normal look like?
Unlock The Power Of Real-Time Performance Data With Business iQ - AppD Global...
Top Tips For AppD Adoption Success - AppD Global Tour Stockholm
What's next for AppD and Cisco? - AppD Global Tour
Cisco and AppDynamics: Redefining Application Intelligence - AppD Summit Europe
British Medical Journal: Refine Your Metrics For Digital Success - AppD Summi...
Forrester Research: How To Organise Your Business For Digital Success - AppD ...
Mastering APM With End User Monitoring - AppD Summit Europe
Become an AppDynamics Dashboard Rockstar - AppD Summit Europe
Business iQ: What It Is and How to Start - AppD Summit Europe
Containers: Give Me The Facts, Not The Hype - AppD Summit Europe
Automation: The Good, The Bad and The Ugly with DevOpsGuys - AppD Summit Europe

AppSphere 15 - PHP, Node.js and Python Deep Dive

  • 1. PHP, Node.js and Python Deep Dive Omed Habib, Product Marketing
  • 2. Agenda 2015 PHP Node.js Copyright © 2015 AppDynamics. All rights reserved. 2 Python Developer Trends 4.2 Sneak Peak
  • 4. 4.1 for PHP Cross App Correlation Backend Naming Rules HTTP Data Collectors PHP 5.6 API Functions Copyright © 2015 AppDynamics. All rights reserved. 4
  • 5. 4.1 for Node.js Error Detection Using HTTP Return Codes Node.js Backends Discovery & Grouping Rules Object Instance Tracking Node.js 0.12 API Functions Copyright © 2015 AppDynamics. All rights reserved. 5
  • 6. 4.1 for Python Distributed Transaction Correlation Cross-App Correlation Custom Match/Exclude Rules Linux & Mac OOTB WSGI Framework Support API Functions Copyright © 2015 AppDynamics. All rights reserved. 6
  • 8. Challenge Multiple PHP “applications” on a single server Copyright © 2015 AppDynamics. All rights reserved. 8
  • 10. Before n applications on the same server = 1 application in AppDynamics Copyright © 2015 AppDynamics. All rights reserved. 10
  • 11. Today n applications on the same server = n applications in AppDynamics Copyright © 2015 AppDynamics. All rights reserved. 11
  • 12. Copyright © 2015 AppDynamics. All rights reserved. 12
  • 13. Before appdynamics_agent.ini Copyright © 2015 AppDynamics. All rights reserved. 13
  • 15. More Flexibility with (same) Configs agent.controller.hostName agent.controller.port agent.applicationName agent.tierName agent.nodeName agent.accountName agent.accountAccessKey Copyright © 2015 AppDynamics. All rights reserved. 15
  • 16. Two Separate Apps, Same Server <VirtualHost *:80> DocumentRoot "/Library/WebServer/Documents" ServerName localhost ErrorLog "/private/var/log/apache2/error_log" CustomLog "/private/var/log/apache2/access_log" common php_value agent.applicationName FrontEnd php_value agent.tierName FrontTier php_value agent.nodeName front-node1 </VirtualHost> Copyright © 2015 AppDynamics. All rights reserved. 16 <VirtualHost *:80> DocumentRoot "/var/www" ServerName test.local <Directory "/var/www"> Options FollowSymLinks Multiviews AllowOverride Options Require all granted </Directory> ErrorLog "/private/var/log/apache2/error_log" CustomLog "/private/var/log/apache2/access_log" common php_value agent.applicationName API php_value agent.tierName APItier php_value agent.nodeName api-node1 </VirtualHost>
  • 17. Copyright © 2015 AppDynamics. All rights reserved. 17
  • 18. Copyright © 2015 AppDynamics. All rights reserved. 18
  • 19. Copyright © 2015 AppDynamics. All rights reserved. 19
  • 21. Few points to consider… •  Available for beta after AppSphere •  4.2 Controller is recommended •  All apps will share same proxy on server •  Licenses will stay same (per node) until adjusted •  Currently in beta, hoping to GA in 4.2 •  Proxy functionality will be replaced with LibAgent in 2016 Copyright © 2015 AppDynamics. All rights reserved. 21
  • 23. Challenge Heavy Memory Consumption by the Node.js Application Copyright © 2015 AppDynamics. All rights reserved. 23
  • 25. V8 Manages Memory Pro •  You don’t have to worry about it. •  You don’t have to write code to manage it. Con •  You don’t have control over it. •  You have to find a way to find your memory leak. Copyright © 2015 AppDynamics. All rights reserved. 25
  • 26. Copyright © 2015 AppDynamics. All rights reserved. 26
  • 27. Copyright © 2015 AppDynamics. All rights reserved. 27
  • 28. Copyright © 2015 AppDynamics. All rights reserved. 28
  • 29. “I can actually say we've had no outages in production on a Node.js cluster, since we've been porting over, and I can credit a large part of that due to the monitoring of AppDynamics.” Stace Baal, Director of Engineering @ eHarmony Copyright © 2015 AppDynamics. All rights reserved. 29
  • 31. Challenge A Python Application Executing Jobs in an Infinite While Loop Copyright © 2015 AppDynamics. All rights reserved. 31
  • 32. The Loop setup() while (true): do_work() teardown() Copyright © 2015 AppDynamics. All rights reserved. 32
  • 33. Python Agent API Functions Copyright © 2015 AppDynamics. All rights reserved. 33 Functions made available to the application code to further tailor your APM solution.
  • 34. Copyright © 2015 AppDynamics. All rights reserved. 34 from  appdynamics.agent  import  api  as  appd                   setup()         while  (true):   bt_handle  =  appd.start_bt('do  work’)   try:          do_work()   except  Exception  as  exc:          raise   finally:          appd.end_bt(bt_handle,  exc)       teardown()  
  • 35. Custom Exit Calls Copyright © 2015 AppDynamics. All rights reserved. 35 start_exit_call() … end_exit_call()
  • 36. API Functions Copyright © 2015 AppDynamics. All rights reserved. 36 •  init(environ=None, timeout_ms=NO_TIMEOUT) •  shutdown(timeout_ms=None) •  start_bt(name, correlation_header=None) •  end_bt(bt_handle, exc=None) •  add_snapshot_data(bt_handle, key, value) •  get_active_bt_handle(request) •  start_exit_call(bt_handle, exit_type, display_name, identifying_properties, optional_properties=None) •  end_exit_call(exit_call_handle, exc=None) •  make_correlation_header(bt_handle, exit_call_handle) •  bt(name, correlation_header=None) •  exit_call(bt_handle, exit_type, display_name, identifying_properties, optional_properties=None)
  • 37. Copyright © 2015 AppDynamics. All rights reserved. 37 By The Way... API Functions Are Available Today For
  • 38. “The new Python agent by AppDynamics brought the visibility that we’ve come to expect from the AppDynamics Platform. It didn't take long for us to qualify that this was the solution for our deployments of over 3,000 Python instances” Albert Kemner, Principal Engineer @ Gannett Copyright © 2015 AppDynamics. All rights reserved. 38
  • 39. Copyright © 2015 AppDynamics. All rights reserved. 39
  • 41. Decoupling Architecture + Mindset = Merging Teams Copyright © 2015 AppDynamics. All rights reserved. 41
  • 43. 4.2 Roadmap Goal •  Multi-Node Support •  SELinux •  NuSOAP Exit Calls •  PostgreSQL Copyright © 2015 AppDynamics. All rights reserved. 43 •  Node.js 4.0 & 5.0 •  Allocation Snapshots •  Transaction Analytics •  Heroku Support •  Windows Support •  EUM Correlation •  API Functions •  Data Collectors •  MongoDB