US9270553B1 - Dynamic service debugging in a virtual environment - Google Patents

Dynamic service debugging in a virtual environment Download PDF

Info

Publication number
US9270553B1
US9270553B1 US14/226,328 US201414226328A US9270553B1 US 9270553 B1 US9270553 B1 US 9270553B1 US 201414226328 A US201414226328 A US 201414226328A US 9270553 B1 US9270553 B1 US 9270553B1
Authority
US
United States
Prior art keywords
request
debugging
services
service
debug
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related, expires
Application number
US14/226,328
Inventor
Chris Higgins
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Amazon Technologies Inc
Original Assignee
Amazon Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Amazon Technologies Inc filed Critical Amazon Technologies Inc
Priority to US14/226,328 priority Critical patent/US9270553B1/en
Assigned to AMAZON TECHNOLOGIES, INC. reassignment AMAZON TECHNOLOGIES, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HIGGINS, CHRIS
Priority to US15/043,970 priority patent/US10031837B1/en
Application granted granted Critical
Publication of US9270553B1 publication Critical patent/US9270553B1/en
Expired - Fee Related legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/60Subscription-based services using application servers or record carriers, e.g. SIM application toolkits

Definitions

  • Cloud computing is the use of computing resources (hardware and software) which are available in a remote location and accessible over a network, such as the Internet. Users are able to buy these computing resources (including storage and computing power) as a utility on demand. Cloud computing entrusts remote services with a user's data, software and computation. Use of virtual computing resources can provide a number of advantages including cost advantages and/or ability to adapt rapidly to changing computing resource needs.
  • Cloud computing can be formed by a plurality of services.
  • the details of how services operate is often hidden from external customers that interface with the services through Application Program Interfaces (APIs).
  • APIs Application Program Interfaces
  • Trouble shooting errors can be problematic when multiple services are involved in generating a response to an API call. For example, it can be difficult to determine which service caused an error when hundreds of services are involved in the response.
  • FIG. 1 is an overall system diagram showing a plurality of services used in responding to an API request, wherein the API request includes a debug-requested parameter.
  • FIG. 2 shows further details of the services of FIG. 1 , including logging components used for storing debugging log data.
  • FIG. 3 illustrates an example API request that includes a debug-requested parameter and an identifier to be passed between services.
  • FIG. 4 is an example system diagram showing a plurality of virtual machine instances running in the multi-tenant environment.
  • FIG. 5 shows further details of an example system including a plurality of management components associated with a control plane.
  • FIG. 6 shows an example of a plurality of host computers, routers and switches, which are hardware assets used for running services.
  • FIG. 7 is a flowchart of a method according to one embodiment used to dynamically control debugging in the multi-tenant environment.
  • FIG. 8 is a flowchart of a method according to another embodiment used to dynamically control debugging in the multi-tenant environment.
  • FIG. 9 depicts a generalized example of a suitable computing environment in which the described innovations may be implemented.
  • a service-oriented architecture provides on-demand service call debugging and call-stack tracing.
  • the service call e.g., an API
  • the field is a ‘debug-requested’ field
  • the optional field is a unique call-id signature.
  • the debug-requested field and optional signature value can be API independent meaning that it can be used with any API to assist with modifying a debug mode in the service provider as it processing the API.
  • the service provider Upon receipt of the service call, the service provider checks to see if there is a unique call-id signature along with the ‘debug-requested’ field. If there is no unique call-id, then one can be dynamically generated.
  • the service provider can enable debugging in accordance with the debug-requested field for this service call, and tag all debugged data with the unique call-id. If it is necessary to call other services to fulfill the request, then the service can pass the ‘debug-requested’ field and the ‘unique id’ in the call to the other services. If every service in the call stack supports this mechanism, then detailed debugging can be supported across the entire stack for just those requests that need it and the performance/latency impact of having debugging enabled only applies to the subset of calls which need debugging.
  • One advantage of accepting the ‘debug-requested’ flag at any entry point into the call tree is that it allows services to enable debugging for a single service call only.
  • the debug-requested field can provide a level of debugging, such as errors only, a stack trace, or a complete log.
  • the debug-requested field allows the caller to dynamically control a debug mode within the service provider.
  • a web service is a software function provided at a network address over the web or the cloud.
  • Clients initiate web service requests to servers and servers process the requests and return appropriate responses.
  • the client web service requests are typically initiated using, for example, an API request.
  • web service requests are generally described below as API requests, but it is understood that other web service requests can be made.
  • An API request is a programmatic interface to a defined request-response message system, typically expressed in JSON or XML, which is exposed via the web—most commonly by means of an HTTP-based web server.
  • an API can be defined as a set of Hypertext Transfer Protocol (HTTP) request messages, along with a definition of the structure of response messages, which can be in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format.
  • HTTP Hypertext Transfer Protocol
  • the API can specify a set of functions or routines that perform an action, which includes accomplishing a specific task or allowing interaction with a software component.
  • a web service receives the API request from a client device, the web service can generate a response to the request and send the response to the endpoint identified in the request.
  • FIG. 1 shows a service provider 100 as including a plurality of services.
  • the services can make requests to other services and receive corresponding responses.
  • each service can be a Web service and make an API request to other services.
  • the service provider 100 can include one or more endpoints, such as service endpoint 110 .
  • a request for a service is shown at 120 and can include a debug-requested parameter.
  • the endpoint 110 receives the API request 120 , it can be a starting point of a calling chain of services used in the service provider 100 in responding to the request.
  • the endpoint 110 in response to the request 120 , the endpoint 110 can generate its own API requests to a first level of services shown generally at 130 .
  • Those services can, in turn, call a second level of services shown at 132 , and so on, until an Nth level (where N is any integer value) of services 134 are called.
  • the service endpoint 110 can pass to the services 130 a unique debug identifier, such as shown at 140 .
  • the services 130 can then pass the identifier to the downstream services 132 , and so on.
  • the identifier 140 can be used by the services as a key in storing debug data (e.g., metadata and log data, such as errors, times, parameter, etc.) so that log data is stored across services using the same key associated with the API request.
  • debug data e.g., metadata and log data, such as errors, times, parameter, etc.
  • the unique debug identifier 140 can be generated by the service endpoint 110 or received with the AIP request 120 .
  • the identifier 140 identifies the request throughout the service calling chain so that all requests can be easily logged and retrieved.
  • the debug-requested parameter can likewise be passed to each of the services 130 , 132 , etc., so as to establish a consistent debugging behavior across services. Still further, a different parameter associated with the debug-requested parameter can be passed to each of the services.
  • the parameters that are passed are called herein a “debugging mode” and can include the debug-requested parameter, the identifier 140 , a combination of the two, and/or some other parameter(s) indicating the debugging mode.
  • each service receives the debugging mode, it can correspondingly adjust its' level of debugging to be consistent with the debugging mode.
  • each service can interpret the debugging mode according to the functionality of the particular service.
  • the debugging mode can include a graduated level of debugging and/or a generic on/off flag.
  • debugging can be selected as off so as to achieve maximum speed in the response while assuring that log data is not maintained or is otherwise minimized.
  • an API response 150 can be returned to the original requester. If the service endpoint 110 generated the identifier 140 , then the API response can include the identifier so that future queries into log data can be made using the identifier. Alternatively, the API response 150 can be returned asynchronously. For example, a response can be returned indicating the request 120 is being processed. The identifier can be included with the asynchronous response. A follow-up second response can be returned when the request is completed or the requestor may need to send a subsequent request for status.
  • FIG. 2 shows further details of an example calling chain 200 used in response to receiving an API request including a debug-requested parameter 210 .
  • An end-point service 220 can receive the debug-requested parameter 210 and can generate a debugging mode 230 in response thereto. The debugging mode can then be passed to the downstream services in the calling chain 200 .
  • the debugging mode can include a flag indicating that debugging is on/off, a unique identifier that can be used to store data for this particular request, and/or a logging level indicating a degree to which logging should be performed.
  • the debugging mode can include any or all of these parameters, and others can be used depending on the particular design.
  • the same debugging mode 230 is passed to all services in the calling chain.
  • a first downstream service 240 is shown receiving the debugging mode 230 from the end-point service 220 .
  • the service 240 makes two API requests to services 242 , 244 and passes each one the same debugging mode 230 which it received.
  • a uniform level of debugging can be implemented across all of the services that are in the calling chain. Services that are not in the calling chain need not receive the debugging mode.
  • Each of the services 200 can include a logging component 250 .
  • the logging components 250 can be responsive to the debugging mode 230 to log data and metadata associated with processing the API request.
  • the metadata can include the other services called, time stamp information, start/stop times, while the log data can include arguments, return values, etc.
  • the log data and metadata can be stored using the identifier as a key so that each logging component 250 stores its data using the same identifier, which is associated with the original API request.
  • a uniform logging system is used across disparate services within the service provider.
  • FIG. 3 shows an example API request 300 including multiple fields, such as the API request itself 310 , a debug-requested field 320 and an optional identifier field 330 , shown in dashed lines.
  • the API request 310 can be any desired request supported by the service provider. Typical service providers support thousands of requests and the API request 310 can include multiple subfields.
  • the debug-requested parameter 320 can take a variety of forms and can be a simple one-bit flag (ON/OFF) or it can include levels of debugging, such as Level 0 used for errors only, Level 1 used for logging a stack trace, or Level 2 for logging everything. Thus, depending on the level, a more detailed level of logging can be achieved.
  • the debug-requested parameter 320 can be a combination of the flag and level or other fields can be used.
  • the identifier 330 can be any alpha-numeric combination of characters and should uniquely be associated with the API request. Additional fields related to a debugging mode can be added to the API request.
  • FIG. 4 is a computing system diagram of a network-based compute service provider 400 that illustrates one environment in which embodiments described herein can be used.
  • the compute service provider 400 i.e., the cloud provider
  • the compute service provider 400 is capable of delivery of computing and storage capacity as a service to a community of end recipients.
  • the compute service provider can be established for an organization by or on behalf of the organization. That is, the compute service provider 400 may offer a “private cloud environment.”
  • the compute service provider 400 supports a multi-tenant environment, wherein a plurality of customers operate independently (i.e., a public cloud environment).
  • the compute service provider 400 can provide the following models: Infrastructure as a Service (“IaaS”), Platform as a Service (“PaaS”), and/or Software as a Service (“SaaS”). Other models can be provided.
  • IaaS Infrastructure as a Service
  • PaaS Platform as a Service
  • SaaS Software as a Service
  • Other models can be provided.
  • the compute service provider 400 can offer computers as physical or virtual machines and other resources.
  • the virtual machines can be run as guests by a hypervisor, as described further below.
  • the PaaS model delivers a computing platform that can include an operating system, programming language execution environment, database, and web server.
  • Application developers can develop and run their software solutions on the compute service provider platform without the cost of buying and managing the underlying hardware and software.
  • the SaaS model allows installation and operation of application software in the compute service provider.
  • end users access the compute service provider 400 using networked client devices, such as desktop computers, laptops, tablets, smartphones, etc. running web browsers or other lightweight client applications.
  • networked client devices such as desktop computers, laptops, tablets, smartphones, etc. running web browsers or other lightweight client applications.
  • the compute service provider 400 can be described as a “cloud” environment.
  • the particular illustrated compute service provider 400 includes a plurality of server computers 402 A- 402 D. While only four server computers are shown, any number can be used, and large centers can include thousands of server computers.
  • the server computers 402 A- 402 D can provide computing resources for executing software instances 406 A- 406 D.
  • the instances 406 A- 406 D are virtual machines.
  • a virtual machine is an instance of a software implementation of a machine (i.e. a computer) that executes applications like a physical machine.
  • each of the servers 402 A- 402 D can be configured to execute a hypervisor 408 or another type of program configured to enable the execution of multiple instances 406 on a single server.
  • each of the instances 406 can be configured to execute one or more applications.
  • One or more server computers 404 can be reserved for executing software components for managing the operation of the server computers 402 and the instances 406 .
  • the server computer 404 can execute a management component 410 .
  • a customer can access the management component 410 to configure various aspects of the operation of the instances 406 purchased by the customer. For example, the customer can purchase, rent or lease instances and make changes to the configuration of the instances. The customer can also specify settings regarding how the purchased instances are to be scaled in response to demand.
  • the management component can further include a policy document to implement customer policies.
  • the policy document can include a level of debugging to be used when the debug-requested parameter is activated.
  • An auto scaling component 412 can scale the instances 406 based upon rules defined by the customer.
  • the auto scaling component 412 allows a customer to specify scale-up rules for use in determining when new instances should be instantiated and scale-down rules for use in determining when existing instances should be terminated.
  • the auto scaling component 412 can consist of a number of subcomponents executing on different server computers 402 or other computing devices.
  • the auto scaling component 412 can monitor available computing resources over an internal management network and modify resources available based on need.
  • a deployment component 414 can be used to assist customers in the deployment of new instances 406 of computing resources.
  • the deployment component can have access to account information associated with the instances, such as who is the owner of the account, credit card information, country of the owner, etc.
  • the deployment component 414 can receive a configuration from a customer that includes data describing how new instances 406 should be configured.
  • the configuration can specify one or more applications to be installed in new instances 406 , provide scripts and/or other types of code to be executed for configuring new instances 406 , provide cache logic specifying how an application cache should be prepared, and other types of information.
  • the deployment component 414 can utilize the customer-provided configuration and cache logic to configure, prime, and launch new instances 406 .
  • the configuration, cache logic, and other information may be specified by a customer using the management component 410 or by providing this information directly to the deployment component 414 .
  • the instance manager can be considered part of the deployment component.
  • Customer account information 415 can include any desired information associated with a customer of the multi-tenant environment.
  • the customer account information can include a unique identifier for a customer, a customer address, billing information, licensing information, customization parameters for launching instances, scheduling information, auto-scaling parameters, previous IP addresses used to access the account, etc.
  • a network 430 can be utilized to interconnect the server computers 402 A- 402 D and the server computer 404 .
  • the network 430 can be a local area network (LAN) and can be connected to a Wide Area Network (WAN) 440 so that end users can access the compute service provider 400 .
  • LAN local area network
  • WAN Wide Area Network
  • a service 450 can receive an API request and generate an identifier in response to a debug-requested parameter within the API request. Thus, if an identifier is not received with the request, the service 450 can generate an identifier, which can be used as a key for storing log data accumulated through processing the API request. The service 450 can call other services in order to process the request. Once the response is generated, the service 450 can return the response to the caller together with the generated identifier. In this way, the debug-requested parameter can be transformed into an identifier used in storing log data.
  • FIG. 5 illustrates in further detail management components 506 that can be used in the multi-tenant environment of the compute service provider 400 .
  • a client device can be used.
  • the client device 510 can be any of a variety of computing devices, mobile or otherwise including a cell phone, smartphone, handheld computer, Personal Digital Assistant (PDA), desktop computer, etc.
  • the client device 510 can communicate with the compute service provider 400 through an end point 512 , which can be a DNS address designed to receive and process API requests.
  • the end point 512 can be a web server configured to expose an API.
  • Other services 515 which can be internal to the compute service provider 400 , can likewise make API requests to the end point 512 .
  • the admission control 514 can authenticate, validate and unpack the API requests for service or storage of data within the compute service provider 400 .
  • An instance manager 520 controls launching and termination of instances in the network. When an instruction is received (such as through an API request) to launch an instance, the instance manager pulls resources from a capacity pool and launches the instance on a decided upon host server computer. Similar to the instance manager are the storage manager 522 and the network resource manager 524 .
  • the storage manager 522 relates to initiation and termination of storage volumes, while the network resource manager 524 relates to initiation and termination of routers, switches, subnets, etc.
  • the endpoint 512 can be coupled to a service 530 , which can call other services 532 , 534 , etc. Any number N (where N is any integer) of services can be called. Assuming that a debug-requested parameter is activated in the API, the services 530 , 532 , 534 store their respective log data in a log data database 540 . Each log service can use the same identifier in order to store the data. An example entry is shown as including other services called, time stamps associated with the calls, start and stop times, arguments and return values, and log data generally. As the log data database 540 is a single repository including the identifier, it can be easy searched for all log data related to the same API call. For example, each API request can have its own unique identifier so that all log data associated with the API request can be retrieved.
  • FIG. 6 illustrates the hardware framework upon which the services can operate.
  • a plurality of data centers such as data center 610 , can be coupled together by routers 616 .
  • the routers 616 read address information in a received packet and determine the packet's destination. If the router decides that a different data center contains a host server computer, then the packet is forwarded to that data center. If the packet is addressed to a host in the data center 610 , then it is passed to a network address translator (NAT) 618 that converts the packet's public IP address to a private IP address.
  • NAT network address translator
  • the NAT also translates private addresses to public addresses that are bound outside of the datacenter 610 .
  • Additional routers 620 can be coupled to the NAT to route packets to one or more racks of host server computers 630 .
  • Each rack 630 can include a switch 632 coupled to multiple host server computers.
  • a particular host server computer is shown in an expanded view at 640 .
  • Each host 640 has underlying hardware 650 including one or more CPUs 652 , memory 654 , disk I/O 656 , network I/O 658 , etc.
  • Running a layer above the hardware 650 is an operating system 670 .
  • the service layer 680 can be an application including a log component 682 used for logging data associated with processing an API request.
  • the log component 682 can obtain access to the hardware 650 through the operating system 670 to record data such as CPU cycles, memory use of memory 654 , Disk I/O use from Disk I/O hardware 656 or network I/O use from network I/O hardware 658 .
  • the log component 682 can access the log data database 540 using the structure of FIGS. 5 and 6 .
  • FIG. 7 is a flowchart of an embodiment for dynamically controlling a debugging mode in a service provider.
  • a request is received for a service to be performed.
  • the request can be an API request or other Web service request.
  • a debug-requested parameter can be detected, which controls a debugging mode.
  • the debug-requested parameter can be a field within the request.
  • a simple parsing of the request can be used to detect the debug-requested parameter.
  • the debugging mode can be passed between services.
  • the debugging mode can be derived directly from the debug-requested parameter or it can be obtained from a policy document linked to a customer account.
  • a level of debugging can be obtained from the customer's policy document.
  • all of the debug mode data can be part of the API.
  • the log data is passed to each service needed in order to generate a response to the API request.
  • data is logged in accordance with the debugging mode.
  • the logging of data can include storing parameters indicating how the service processed the request.
  • parameters can indicate resources (CPU cycles, memory, etc.) used by one or more server computers in processing the request.
  • the logging of data can be performed by those services that receive the debugging mode. It should be recognized that the process blocks can be performed in any desired order and are not necessarily sequential.
  • a request for a service to be performed can be received.
  • the request can be an API request. Additionally, the request can be from a customer of the service provider or from a service internal to the service provider.
  • a debug-requested parameter associated with the request can be read.
  • the debug-requested parameter can be read from the request itself or from a policy document, wherein the policy document is a document stored by the service provider and associated with a customer of the request.
  • the debug-requested parameter can be used to control a debugging mode used in processing the request.
  • the request can include an identifier that can be passed between the services.
  • controlling the debugging mode can include passing the debugging mode between services of the service provider used to process the request, so as to establish a consistent debug behavior across all services. Additionally, controlling the debugging mode can include logging information associated with the request for each service used to process the request. The information that can be logged can include metadata associated with the request and log data associated with the request. Examples of controlling the debugging mode can include turning the debugging mode off, turning the debugging mode on, or adjusting a level of the debugging mode, wherein the debugging mode includes graduated levels.
  • the services of the service provider can have debugging turned off until dynamic requests are made requesting debugging while generating a response to an API. Once the requests are processed, the debugging can be switched back off. In this way, the services can minimize unwanted debugging data, but can switch debugging on to a desired level in response to a request to do so.
  • the identifier can be used later via internal or external service requests to retrieve all log data associated with the API request.
  • the log data and metadata can be retrieved using the identifier as a key.
  • Various details regarding how the API was processed can be determined from the log data and metadata, such as through a visual display. For example, a graphical presentation can indicate each of the services called in the request, a total amount of memory used, CPU cycles used, network I/O used, disk I/O used, etc. Each of these parameters can be displayed or otherwise saved for later use. Additionally, timing information can be extracted, such as a total time to process the API request or a time for each service to process the request. Other uses of the log data can vary depending on the design.
  • FIG. 9 depicts a generalized example of a suitable computing environment 900 in which the described innovations may be implemented.
  • the computing environment 900 is not intended to suggest any limitation as to scope of use or functionality, as the innovations may be implemented in diverse general-purpose or special-purpose computing systems.
  • the computing environment 900 can be any of a variety of computing devices (e.g., desktop computer, laptop computer, server computer, tablet computer, etc.)
  • the computing environment 900 includes one or more processing units 910 , 915 and memory 920 , 925 .
  • the processing units 910 , 915 execute computer-executable instructions.
  • a processing unit can be a general-purpose central processing unit (CPU), processor in an application-specific integrated circuit (ASIC) or any other type of processor.
  • ASIC application-specific integrated circuit
  • FIG. 9 shows a central processing unit 910 as well as a graphics processing unit or co-processing unit 915 .
  • the tangible memory 920 , 925 may be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two, accessible by the processing unit(s).
  • volatile memory e.g., registers, cache, RAM
  • non-volatile memory e.g., ROM, EEPROM, flash memory, etc.
  • the memory 920 , 925 stores software 980 implementing one or more innovations described herein, in the form of computer-executable instructions suitable for execution by the processing unit(s).
  • a computing system may have additional features.
  • the computing environment 900 includes storage 940 , one or more input devices 950 , one or more output devices 960 , and one or more communication connections 970 .
  • An interconnection mechanism such as a bus, controller, or network interconnects the components of the computing environment 900 .
  • operating system software provides an operating environment for other software executing in the computing environment 900 , and coordinates activities of the components of the computing environment 900 .
  • the tangible storage 940 may be removable or non-removable, and includes magnetic disks, magnetic tapes or cassettes, CD-ROMs, DVDs, or any other medium which can be used to store information in a non-transitory way and which can be accessed within the computing environment 900 .
  • the storage 940 stores instructions for the software 980 implementing one or more innovations described herein.
  • the input device(s) 950 may be a touch input device such as a keyboard, mouse, pen, or trackball, a voice input device, a scanning device, or another device that provides input to the computing environment 900 .
  • the output device(s) 960 may be a display, printer, speaker, CD-writer, or another device that provides output from the computing environment 900 .
  • the communication connection(s) 970 enable communication over a communication medium to another computing entity.
  • the communication medium conveys information such as computer-executable instructions, audio or video input or output, or other data in a modulated data signal.
  • a modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
  • communication media can use an electrical, optical, RF, or other carrier.
  • Any of the disclosed methods can be implemented as computer-executable instructions stored on one or more computer-readable storage media (e.g., one or more optical media discs, volatile memory components (such as DRAM or SRAM), or non-volatile memory components (such as flash memory or hard drives)) and executed on a computer (e.g., any commercially available computer, including smart phones or other mobile devices that include computing hardware).
  • a computer e.g., any commercially available computer, including smart phones or other mobile devices that include computing hardware.
  • the term computer-readable storage media does not include communication connections, such as signals and carrier waves.
  • Any of the computer-executable instructions for implementing the disclosed techniques as well as any data created and used during implementation of the disclosed embodiments can be stored on one or more computer-readable storage media.
  • the computer-executable instructions can be part of, for example, a dedicated software application or a software application that is accessed or downloaded via a web browser or other software application (such as a remote computing application).
  • Such software can be executed, for example, on a single local computer (e.g., any suitable commercially available computer) or in a network environment (e.g., via the Internet, a wide-area network, a local-area network, a client-server network (such as a cloud computing network), or other such network) using one or more network computers.
  • any functionality described herein can be performed, at least in part, by one or more hardware logic components, instead of software.
  • illustrative types of hardware logic components include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
  • any of the software-based embodiments can be uploaded, downloaded, or remotely accessed through a suitable communication means.
  • suitable communication means include, for example, the Internet, the World Wide Web, an intranet, software applications, cable (including fiber optic cable), magnetic communications, electromagnetic communications (including RF, microwave, and infrared communications), electronic communications, or other such communication means.

Abstract

A service oriented architecture (SOA) provides on-demand service call debugging and call stack tracing. The service call (e.g., an API) includes a new field and optional signature value. The field is a ‘debug-requested’ field, and the optional field is a unique call-id signature. The service provider can enable debugging in accordance with the debug-requested field for this service call, and tag all debugged data with the unique call-id. If it is necessary to call other services to fulfill the request, then the service can pass the ‘debug-requested’ field and the ‘unique id’ in the call to that service. Using this mechanism, detailed debugging can be supported across an entire stack for only those requests that need it and the performance/latency impact of having debugging enabled only applies to the subset of calls which need debugging.

Description

BACKGROUND
Cloud computing is the use of computing resources (hardware and software) which are available in a remote location and accessible over a network, such as the Internet. Users are able to buy these computing resources (including storage and computing power) as a utility on demand. Cloud computing entrusts remote services with a user's data, software and computation. Use of virtual computing resources can provide a number of advantages including cost advantages and/or ability to adapt rapidly to changing computing resource needs.
Cloud computing can be formed by a plurality of services. The details of how services operate is often hidden from external customers that interface with the services through Application Program Interfaces (APIs). Trouble shooting errors can be problematic when multiple services are involved in generating a response to an API call. For example, it can be difficult to determine which service caused an error when hundreds of services are involved in the response.
As a result, many of the services activate full-debug capability on an ongoing basis. Unfortunately, this slows each service, which can have a cumulative effect when many services are used in generating a single response to an API request.
BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is an overall system diagram showing a plurality of services used in responding to an API request, wherein the API request includes a debug-requested parameter.
FIG. 2 shows further details of the services of FIG. 1, including logging components used for storing debugging log data.
FIG. 3 illustrates an example API request that includes a debug-requested parameter and an identifier to be passed between services.
FIG. 4 is an example system diagram showing a plurality of virtual machine instances running in the multi-tenant environment.
FIG. 5 shows further details of an example system including a plurality of management components associated with a control plane.
FIG. 6 shows an example of a plurality of host computers, routers and switches, which are hardware assets used for running services.
FIG. 7 is a flowchart of a method according to one embodiment used to dynamically control debugging in the multi-tenant environment.
FIG. 8 is a flowchart of a method according to another embodiment used to dynamically control debugging in the multi-tenant environment.
FIG. 9 depicts a generalized example of a suitable computing environment in which the described innovations may be implemented.
DETAILED DESCRIPTION
A service-oriented architecture (SOA) provides on-demand service call debugging and call-stack tracing. The service call (e.g., an API) includes a new field and optional signature value. The field is a ‘debug-requested’ field, and the optional field is a unique call-id signature. The debug-requested field and optional signature value can be API independent meaning that it can be used with any API to assist with modifying a debug mode in the service provider as it processing the API. Upon receipt of the service call, the service provider checks to see if there is a unique call-id signature along with the ‘debug-requested’ field. If there is no unique call-id, then one can be dynamically generated. The service provider can enable debugging in accordance with the debug-requested field for this service call, and tag all debugged data with the unique call-id. If it is necessary to call other services to fulfill the request, then the service can pass the ‘debug-requested’ field and the ‘unique id’ in the call to the other services. If every service in the call stack supports this mechanism, then detailed debugging can be supported across the entire stack for just those requests that need it and the performance/latency impact of having debugging enabled only applies to the subset of calls which need debugging. One advantage of accepting the ‘debug-requested’ flag at any entry point into the call tree is that it allows services to enable debugging for a single service call only. Other service calls that do not need debugging can leave debugging switched off. Alternatively, the debug-requested field can provide a level of debugging, such as errors only, a stack trace, or a complete log. Thus, the debug-requested field allows the caller to dynamically control a debug mode within the service provider.
The services used in cloud computing are typically Web services. A web service is a software function provided at a network address over the web or the cloud. Clients initiate web service requests to servers and servers process the requests and return appropriate responses. The client web service requests are typically initiated using, for example, an API request. For purposes of simplicity, web service requests are generally described below as API requests, but it is understood that other web service requests can be made. An API request is a programmatic interface to a defined request-response message system, typically expressed in JSON or XML, which is exposed via the web—most commonly by means of an HTTP-based web server. Thus, in certain implementations, an API can be defined as a set of Hypertext Transfer Protocol (HTTP) request messages, along with a definition of the structure of response messages, which can be in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format. The API can specify a set of functions or routines that perform an action, which includes accomplishing a specific task or allowing interaction with a software component. When a web service receives the API request from a client device, the web service can generate a response to the request and send the response to the endpoint identified in the request.
FIG. 1 shows a service provider 100 as including a plurality of services. Generally, the services can make requests to other services and receive corresponding responses. For example, each service can be a Web service and make an API request to other services. The service provider 100 can include one or more endpoints, such as service endpoint 110. A request for a service is shown at 120 and can include a debug-requested parameter. When the endpoint 110 receives the API request 120, it can be a starting point of a calling chain of services used in the service provider 100 in responding to the request. For example, in response to the request 120, the endpoint 110 can generate its own API requests to a first level of services shown generally at 130. Those services can, in turn, call a second level of services shown at 132, and so on, until an Nth level (where N is any integer value) of services 134 are called. The service endpoint 110 can pass to the services 130 a unique debug identifier, such as shown at 140. The services 130 can then pass the identifier to the downstream services 132, and so on. The identifier 140 can be used by the services as a key in storing debug data (e.g., metadata and log data, such as errors, times, parameter, etc.) so that log data is stored across services using the same key associated with the API request. The unique debug identifier 140 can be generated by the service endpoint 110 or received with the AIP request 120. The identifier 140 identifies the request throughout the service calling chain so that all requests can be easily logged and retrieved. The debug-requested parameter can likewise be passed to each of the services 130, 132, etc., so as to establish a consistent debugging behavior across services. Still further, a different parameter associated with the debug-requested parameter can be passed to each of the services. The parameters that are passed are called herein a “debugging mode” and can include the debug-requested parameter, the identifier 140, a combination of the two, and/or some other parameter(s) indicating the debugging mode. When each service receives the debugging mode, it can correspondingly adjust its' level of debugging to be consistent with the debugging mode. Not all services need to behave identically. That is, each service can interpret the debugging mode according to the functionality of the particular service. Additionally, the debugging mode can include a graduated level of debugging and/or a generic on/off flag. Thus, in some cases where there is sensitivity to confidential information, debugging can be selected as off so as to achieve maximum speed in the response while assuring that log data is not maintained or is otherwise minimized.
After the API request has been completed, an API response 150 can be returned to the original requester. If the service endpoint 110 generated the identifier 140, then the API response can include the identifier so that future queries into log data can be made using the identifier. Alternatively, the API response 150 can be returned asynchronously. For example, a response can be returned indicating the request 120 is being processed. The identifier can be included with the asynchronous response. A follow-up second response can be returned when the request is completed or the requestor may need to send a subsequent request for status.
FIG. 2 shows further details of an example calling chain 200 used in response to receiving an API request including a debug-requested parameter 210. An end-point service 220 can receive the debug-requested parameter 210 and can generate a debugging mode 230 in response thereto. The debugging mode can then be passed to the downstream services in the calling chain 200. The debugging mode can include a flag indicating that debugging is on/off, a unique identifier that can be used to store data for this particular request, and/or a logging level indicating a degree to which logging should be performed. The debugging mode can include any or all of these parameters, and others can be used depending on the particular design. In the particular illustrated embodiment, the same debugging mode 230 is passed to all services in the calling chain. For example, a first downstream service 240 is shown receiving the debugging mode 230 from the end-point service 220. In processing its' response, the service 240 makes two API requests to services 242, 244 and passes each one the same debugging mode 230 which it received. As such, a uniform level of debugging can be implemented across all of the services that are in the calling chain. Services that are not in the calling chain need not receive the debugging mode.
Each of the services 200 can include a logging component 250. The logging components 250 can be responsive to the debugging mode 230 to log data and metadata associated with processing the API request. For example, the metadata can include the other services called, time stamp information, start/stop times, while the log data can include arguments, return values, etc. The log data and metadata can be stored using the identifier as a key so that each logging component 250 stores its data using the same identifier, which is associated with the original API request. Thus, a uniform logging system is used across disparate services within the service provider.
FIG. 3 shows an example API request 300 including multiple fields, such as the API request itself 310, a debug-requested field 320 and an optional identifier field 330, shown in dashed lines. The API request 310 can be any desired request supported by the service provider. Typical service providers support thousands of requests and the API request 310 can include multiple subfields. The debug-requested parameter 320 can take a variety of forms and can be a simple one-bit flag (ON/OFF) or it can include levels of debugging, such as Level 0 used for errors only, Level 1 used for logging a stack trace, or Level 2 for logging everything. Thus, depending on the level, a more detailed level of logging can be achieved. Still further, the debug-requested parameter 320 can be a combination of the flag and level or other fields can be used. The identifier 330 can be any alpha-numeric combination of characters and should uniquely be associated with the API request. Additional fields related to a debugging mode can be added to the API request.
FIG. 4 is a computing system diagram of a network-based compute service provider 400 that illustrates one environment in which embodiments described herein can be used. By way of background, the compute service provider 400 (i.e., the cloud provider) is capable of delivery of computing and storage capacity as a service to a community of end recipients. In an example embodiment, the compute service provider can be established for an organization by or on behalf of the organization. That is, the compute service provider 400 may offer a “private cloud environment.” In another embodiment, the compute service provider 400 supports a multi-tenant environment, wherein a plurality of customers operate independently (i.e., a public cloud environment). Generally speaking, the compute service provider 400 can provide the following models: Infrastructure as a Service (“IaaS”), Platform as a Service (“PaaS”), and/or Software as a Service (“SaaS”). Other models can be provided. For the IaaS model, the compute service provider 400 can offer computers as physical or virtual machines and other resources. The virtual machines can be run as guests by a hypervisor, as described further below. The PaaS model delivers a computing platform that can include an operating system, programming language execution environment, database, and web server. Application developers can develop and run their software solutions on the compute service provider platform without the cost of buying and managing the underlying hardware and software. The SaaS model allows installation and operation of application software in the compute service provider. In some embodiments, end users access the compute service provider 400 using networked client devices, such as desktop computers, laptops, tablets, smartphones, etc. running web browsers or other lightweight client applications. Those skilled in the art will recognize that the compute service provider 400 can be described as a “cloud” environment.
The particular illustrated compute service provider 400 includes a plurality of server computers 402A-402D. While only four server computers are shown, any number can be used, and large centers can include thousands of server computers. The server computers 402A-402D can provide computing resources for executing software instances 406A-406D. In one embodiment, the instances 406A-406D are virtual machines. As known in the art, a virtual machine is an instance of a software implementation of a machine (i.e. a computer) that executes applications like a physical machine. In the example of virtual machine, each of the servers 402A-402D can be configured to execute a hypervisor 408 or another type of program configured to enable the execution of multiple instances 406 on a single server. Additionally, each of the instances 406 can be configured to execute one or more applications.
It should be appreciated that although the embodiments disclosed herein are described primarily in the context of virtual machines, other types of instances can be utilized with the concepts and technologies disclosed herein. For instance, the technologies disclosed herein can be utilized with storage resources, data communications resources, and with other types of computing resources. The embodiments disclosed herein might also execute all or a portion of an application directly on a computer system without utilizing virtual machine instances.
One or more server computers 404 can be reserved for executing software components for managing the operation of the server computers 402 and the instances 406. For example, the server computer 404 can execute a management component 410. A customer can access the management component 410 to configure various aspects of the operation of the instances 406 purchased by the customer. For example, the customer can purchase, rent or lease instances and make changes to the configuration of the instances. The customer can also specify settings regarding how the purchased instances are to be scaled in response to demand. The management component can further include a policy document to implement customer policies. The policy document can include a level of debugging to be used when the debug-requested parameter is activated. An auto scaling component 412 can scale the instances 406 based upon rules defined by the customer. In one embodiment, the auto scaling component 412 allows a customer to specify scale-up rules for use in determining when new instances should be instantiated and scale-down rules for use in determining when existing instances should be terminated. The auto scaling component 412 can consist of a number of subcomponents executing on different server computers 402 or other computing devices. The auto scaling component 412 can monitor available computing resources over an internal management network and modify resources available based on need.
A deployment component 414 can be used to assist customers in the deployment of new instances 406 of computing resources. The deployment component can have access to account information associated with the instances, such as who is the owner of the account, credit card information, country of the owner, etc. The deployment component 414 can receive a configuration from a customer that includes data describing how new instances 406 should be configured. For example, the configuration can specify one or more applications to be installed in new instances 406, provide scripts and/or other types of code to be executed for configuring new instances 406, provide cache logic specifying how an application cache should be prepared, and other types of information. The deployment component 414 can utilize the customer-provided configuration and cache logic to configure, prime, and launch new instances 406. The configuration, cache logic, and other information may be specified by a customer using the management component 410 or by providing this information directly to the deployment component 414. The instance manager can be considered part of the deployment component.
Customer account information 415 can include any desired information associated with a customer of the multi-tenant environment. For example, the customer account information can include a unique identifier for a customer, a customer address, billing information, licensing information, customization parameters for launching instances, scheduling information, auto-scaling parameters, previous IP addresses used to access the account, etc.
A network 430 can be utilized to interconnect the server computers 402A-402D and the server computer 404. The network 430 can be a local area network (LAN) and can be connected to a Wide Area Network (WAN) 440 so that end users can access the compute service provider 400. It should be appreciated that the network topology illustrated in FIG. 4 has been simplified and that many more networks and networking devices can be utilized to interconnect the various computing systems disclosed herein.
A service 450 can receive an API request and generate an identifier in response to a debug-requested parameter within the API request. Thus, if an identifier is not received with the request, the service 450 can generate an identifier, which can be used as a key for storing log data accumulated through processing the API request. The service 450 can call other services in order to process the request. Once the response is generated, the service 450 can return the response to the caller together with the generated identifier. In this way, the debug-requested parameter can be transformed into an identifier used in storing log data.
FIG. 5 illustrates in further detail management components 506 that can be used in the multi-tenant environment of the compute service provider 400. In order to access and utilize instances (such as instances 406 of FIG. 4), a client device can be used. The client device 510 can be any of a variety of computing devices, mobile or otherwise including a cell phone, smartphone, handheld computer, Personal Digital Assistant (PDA), desktop computer, etc. The client device 510 can communicate with the compute service provider 400 through an end point 512, which can be a DNS address designed to receive and process API requests. In particular, the end point 512 can be a web server configured to expose an API. Using the API requests, a client 510 can make requests to implement any of the functionality described herein. Other services 515, which can be internal to the compute service provider 400, can likewise make API requests to the end point 512.
Other general management services that may or may not be included in the compute service provider 400 include an admission control 514, e.g., one or more computers operating together as an admission control web service. The admission control 514 can authenticate, validate and unpack the API requests for service or storage of data within the compute service provider 400. An instance manager 520 controls launching and termination of instances in the network. When an instruction is received (such as through an API request) to launch an instance, the instance manager pulls resources from a capacity pool and launches the instance on a decided upon host server computer. Similar to the instance manager are the storage manager 522 and the network resource manager 524. The storage manager 522 relates to initiation and termination of storage volumes, while the network resource manager 524 relates to initiation and termination of routers, switches, subnets, etc.
The endpoint 512 can be coupled to a service 530, which can call other services 532, 534, etc. Any number N (where N is any integer) of services can be called. Assuming that a debug-requested parameter is activated in the API, the services 530, 532, 534 store their respective log data in a log data database 540. Each log service can use the same identifier in order to store the data. An example entry is shown as including other services called, time stamps associated with the calls, start and stop times, arguments and return values, and log data generally. As the log data database 540 is a single repository including the identifier, it can be easy searched for all log data related to the same API call. For example, each API request can have its own unique identifier so that all log data associated with the API request can be retrieved.
FIG. 6 illustrates the hardware framework upon which the services can operate. A plurality of data centers, such as data center 610, can be coupled together by routers 616. The routers 616 read address information in a received packet and determine the packet's destination. If the router decides that a different data center contains a host server computer, then the packet is forwarded to that data center. If the packet is addressed to a host in the data center 610, then it is passed to a network address translator (NAT) 618 that converts the packet's public IP address to a private IP address. The NAT also translates private addresses to public addresses that are bound outside of the datacenter 610. Additional routers 620 can be coupled to the NAT to route packets to one or more racks of host server computers 630. Each rack 630 can include a switch 632 coupled to multiple host server computers. A particular host server computer is shown in an expanded view at 640.
Each host 640 has underlying hardware 650 including one or more CPUs 652, memory 654, disk I/O 656, network I/O 658, etc. Running a layer above the hardware 650 is an operating system 670. The service layer 680 can be an application including a log component 682 used for logging data associated with processing an API request. For example, the log component 682 can obtain access to the hardware 650 through the operating system 670 to record data such as CPU cycles, memory use of memory 654, Disk I/O use from Disk I/O hardware 656 or network I/O use from network I/O hardware 658. The log component 682 can access the log data database 540 using the structure of FIGS. 5 and 6.
FIG. 7 is a flowchart of an embodiment for dynamically controlling a debugging mode in a service provider. In process block 710, a request is received for a service to be performed. For example, the request can be an API request or other Web service request. In process block 720, a debug-requested parameter can be detected, which controls a debugging mode. The debug-requested parameter can be a field within the request. Thus, a simple parsing of the request can be used to detect the debug-requested parameter. In process block 730, the debugging mode can be passed between services. The debugging mode can be derived directly from the debug-requested parameter or it can be obtained from a policy document linked to a customer account. For example, if the debug-requested parameter is activated, a level of debugging can be obtained from the customer's policy document. Alternatively, all of the debug mode data can be part of the API. In any event, the log data is passed to each service needed in order to generate a response to the API request. In process block 740, data is logged in accordance with the debugging mode. The logging of data can include storing parameters indicating how the service processed the request. Alternatively, parameters can indicate resources (CPU cycles, memory, etc.) used by one or more server computers in processing the request. The logging of data can be performed by those services that receive the debugging mode. It should be recognized that the process blocks can be performed in any desired order and are not necessarily sequential.
In process block 810, a request for a service to be performed can be received. As previously described, the request can be an API request. Additionally, the request can be from a customer of the service provider or from a service internal to the service provider. In process block 820, a debug-requested parameter associated with the request can be read. The debug-requested parameter can be read from the request itself or from a policy document, wherein the policy document is a document stored by the service provider and associated with a customer of the request. In any event, the debug-requested parameter can be used to control a debugging mode used in processing the request. In addition or alternatively, the request can include an identifier that can be passed between the services. In process block 830, the debugging mode is controlled in accordance with the debug-requested parameter. Controlling the debugging mode can include passing the debugging mode between services of the service provider used to process the request, so as to establish a consistent debug behavior across all services. Additionally, controlling the debugging mode can include logging information associated with the request for each service used to process the request. The information that can be logged can include metadata associated with the request and log data associated with the request. Examples of controlling the debugging mode can include turning the debugging mode off, turning the debugging mode on, or adjusting a level of the debugging mode, wherein the debugging mode includes graduated levels.
It will be recognized that the services of the service provider can have debugging turned off until dynamic requests are made requesting debugging while generating a response to an API. Once the requests are processed, the debugging can be switched back off. In this way, the services can minimize unwanted debugging data, but can switch debugging on to a desired level in response to a request to do so.
Additionally, it will be recognized that the identifier can be used later via internal or external service requests to retrieve all log data associated with the API request. In a particular example, the log data and metadata can be retrieved using the identifier as a key. Various details regarding how the API was processed can be determined from the log data and metadata, such as through a visual display. For example, a graphical presentation can indicate each of the services called in the request, a total amount of memory used, CPU cycles used, network I/O used, disk I/O used, etc. Each of these parameters can be displayed or otherwise saved for later use. Additionally, timing information can be extracted, such as a total time to process the API request or a time for each service to process the request. Other uses of the log data can vary depending on the design.
FIG. 9 depicts a generalized example of a suitable computing environment 900 in which the described innovations may be implemented. The computing environment 900 is not intended to suggest any limitation as to scope of use or functionality, as the innovations may be implemented in diverse general-purpose or special-purpose computing systems. For example, the computing environment 900 can be any of a variety of computing devices (e.g., desktop computer, laptop computer, server computer, tablet computer, etc.)
With reference to FIG. 9, the computing environment 900 includes one or more processing units 910, 915 and memory 920, 925. In FIG. 9, this basic configuration 930 is included within a dashed line. The processing units 910, 915 execute computer-executable instructions. A processing unit can be a general-purpose central processing unit (CPU), processor in an application-specific integrated circuit (ASIC) or any other type of processor. In a multi-processing system, multiple processing units execute computer-executable instructions to increase processing power. For example, FIG. 9 shows a central processing unit 910 as well as a graphics processing unit or co-processing unit 915. The tangible memory 920, 925 may be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two, accessible by the processing unit(s). The memory 920, 925 stores software 980 implementing one or more innovations described herein, in the form of computer-executable instructions suitable for execution by the processing unit(s).
A computing system may have additional features. For example, the computing environment 900 includes storage 940, one or more input devices 950, one or more output devices 960, and one or more communication connections 970. An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computing environment 900. Typically, operating system software (not shown) provides an operating environment for other software executing in the computing environment 900, and coordinates activities of the components of the computing environment 900.
The tangible storage 940 may be removable or non-removable, and includes magnetic disks, magnetic tapes or cassettes, CD-ROMs, DVDs, or any other medium which can be used to store information in a non-transitory way and which can be accessed within the computing environment 900. The storage 940 stores instructions for the software 980 implementing one or more innovations described herein.
The input device(s) 950 may be a touch input device such as a keyboard, mouse, pen, or trackball, a voice input device, a scanning device, or another device that provides input to the computing environment 900. The output device(s) 960 may be a display, printer, speaker, CD-writer, or another device that provides output from the computing environment 900.
The communication connection(s) 970 enable communication over a communication medium to another computing entity. The communication medium conveys information such as computer-executable instructions, audio or video input or output, or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can use an electrical, optical, RF, or other carrier.
Although the operations of some of the disclosed methods are described in a particular, sequential order for convenient presentation, it should be understood that this manner of description encompasses rearrangement, unless a particular ordering is required by specific language set forth below. For example, operations described sequentially may in some cases be rearranged or performed concurrently. Moreover, for the sake of simplicity, the attached figures may not show the various ways in which the disclosed methods can be used in conjunction with other methods.
Any of the disclosed methods can be implemented as computer-executable instructions stored on one or more computer-readable storage media (e.g., one or more optical media discs, volatile memory components (such as DRAM or SRAM), or non-volatile memory components (such as flash memory or hard drives)) and executed on a computer (e.g., any commercially available computer, including smart phones or other mobile devices that include computing hardware). The term computer-readable storage media does not include communication connections, such as signals and carrier waves. Any of the computer-executable instructions for implementing the disclosed techniques as well as any data created and used during implementation of the disclosed embodiments can be stored on one or more computer-readable storage media. The computer-executable instructions can be part of, for example, a dedicated software application or a software application that is accessed or downloaded via a web browser or other software application (such as a remote computing application). Such software can be executed, for example, on a single local computer (e.g., any suitable commercially available computer) or in a network environment (e.g., via the Internet, a wide-area network, a local-area network, a client-server network (such as a cloud computing network), or other such network) using one or more network computers.
For clarity, only certain selected aspects of the software-based implementations are described. Other details that are well known in the art are omitted. For example, it should be understood that the disclosed technology is not limited to any specific computer language or program. For instance, the disclosed technology can be implemented by software written in C++, Java, Perl, JavaScript, Adobe Flash, or any other suitable programming language. Likewise, the disclosed technology is not limited to any particular computer or type of hardware. Certain details of suitable computers and hardware are well known and need not be set forth in detail in this disclosure.
It should also be well understood that any functionality described herein can be performed, at least in part, by one or more hardware logic components, instead of software. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
Furthermore, any of the software-based embodiments (comprising, for example, computer-executable instructions for causing a computer to perform any of the disclosed methods) can be uploaded, downloaded, or remotely accessed through a suitable communication means. Such suitable communication means include, for example, the Internet, the World Wide Web, an intranet, software applications, cable (including fiber optic cable), magnetic communications, electromagnetic communications (including RF, microwave, and infrared communications), electronic communications, or other such communication means.
The disclosed methods, apparatus, and systems should not be construed as limiting in any way. Instead, the present disclosure is directed toward all novel and nonobvious features and aspects of the various disclosed embodiments, alone and in various combinations and subcombinations with one another. The disclosed methods, apparatus, and systems are not limited to any specific aspect or feature or combination thereof, nor do the disclosed embodiments require that any one or more specific advantages be present or problems be solved.
In view of the many possible embodiments to which the principles of the disclosed invention may be applied, it should be recognized that the illustrated embodiments are only preferred examples of the invention and should not be taken as limiting the scope of the invention. Rather, the scope of the invention is defined by the following claims. We therefore claim as our invention all that comes within the scope of these claims.

Claims (19)

What is claimed is:
1. A method of dynamically controlling a debugging mode in a service provider, the method comprising:
receiving a request for a service to be performed by the service provider;
detecting, within the request, a debug-requested parameter controlling a debugging mode to be used while processing the request;
while processing the request, passing the debugging mode between services of the service provider so as to establish a consistent debugging behavior across services; and
logging data by services that receive the debugging mode, the logging data being in accordance with the debugging mode.
2. The method of claim 1, further including dynamically generating a unique debug identifier in response to receiving the request, and passing the unique debug identifier to the services used in processing the request.
3. The method of claim 1, further including receiving, with the request, a unique debug identifier and passing the unique debug identifier to the services used in processing the request.
4. The method of claim 1, wherein passing the debugging mode between services includes passing the debug-requested parameter itself and/or a unique debug identifier.
5. The method of claim 1, wherein logging data includes storing parameters indicating how the service processed the request.
6. The method of claim 1, wherein the request is an API request from a customer of the service provider.
7. A computer-readable storage including instructions thereon for executing a method of dynamically controlling debugging in a service provider, the method comprising:
receiving a request for a service to be performed by the service provider;
in response to the request, reading a debug-requested parameter associated with the request; and
in accordance with the debug-requested parameter, controlling a debugging mode used by the service provider while processing the request;
wherein the service provider includes a plurality of services used for processing the request, and wherein the controlling of the debugging mode includes passing a debugging mode between the plurality of services of the service provider used to process the request so as to establish a consistent debug behavior across the plurality of services.
8. The computer-readable storage of claim 7, wherein controlling the debugging mode includes, for each service used to process the request, logging information associated with the request in accordance with the debugging mode.
9. The computer-readable storage of claim 7, wherein controlling the debugging mode includes one of the following: turning debugging off, turning debugging on, or adjusting a level of debugging.
10. The computer-readable storage of claim 7, wherein receiving the request includes receiving an API request from a customer of the service provider or from a service within the service provider.
11. The computer-readable storage of claim 7, wherein the service provider includes a plurality of services used for processing the request, and wherein the request includes an identifier associated with the debug-requested parameter and the identifier is passed between the plurality of services.
12. The computer-readable storage of claim 11, wherein controlling the debugging mode further includes logging metadata associated with the request and logging log data associated with processing the request in a log store using an identifier, and further including retrieving the metadata and log data using the identifier as a key.
13. The computer-readable storage of claim 7, wherein reading the debug-requested parameter includes reading a field within the request itself or reading a field in a document stored by the service provider, the document associated with a customer of the request.
14. The computer-readable storage of claim 7, wherein the debugging mode includes graduated levels of debugging and controlling the debugging mode includes selecting one of the graduated levels based on the request.
15. The computer-readable storage of claim 7, wherein the service provider includes a plurality of services used for processing the request, and the plurality of services have debugging switched off prior to receiving the request, and wherein controlling the debugging mode includes dynamically switching on debugging within the plurality of services while servicing the request and then switching debugging off once the request is processed.
16. The computer-readable storage of claim 7, wherein controlling the debugging mode includes, for each service used to process the request, logging one or more of the following parameters associated with the request: CPU cycles needed to service the request, memory used to service the request, disk I/O needed to service the request, or network I/O needed to service the request.
17. A system for dynamically controlling a debugging mode in a compute service provider, comprising:
a plurality of host server computers for running services in the compute service provider;
an endpoint server computer responsive to receiving an API request including a debug-requested parameter that controls a debug mode to be used while processing the API request, the endpoint server computer for generating an identifier to be passed to a set of the plurality of host server computers running the services used to respond to the API request, so as to establish a consistent debugging behavior across the set of the plurality of host server computers; and
a log database coupled to the plurality of host server computers, for storing log data in association with the identifier.
18. The system of claim 17, further including a logging component associated with the plurality of services for obtaining at least CPU cycles and memory usage of one of the set of host server computers and storing the CPU cycles and memory usage in the log database.
19. The system of claim 17, wherein the debug-requested parameter includes graduated levels of debugging.
US14/226,328 2014-03-26 2014-03-26 Dynamic service debugging in a virtual environment Expired - Fee Related US9270553B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US14/226,328 US9270553B1 (en) 2014-03-26 2014-03-26 Dynamic service debugging in a virtual environment
US15/043,970 US10031837B1 (en) 2014-03-26 2016-02-15 Dynamic service debugging in a virtual environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US14/226,328 US9270553B1 (en) 2014-03-26 2014-03-26 Dynamic service debugging in a virtual environment

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/043,970 Continuation US10031837B1 (en) 2014-03-26 2016-02-15 Dynamic service debugging in a virtual environment

Publications (1)

Publication Number Publication Date
US9270553B1 true US9270553B1 (en) 2016-02-23

Family

ID=55314787

Family Applications (2)

Application Number Title Priority Date Filing Date
US14/226,328 Expired - Fee Related US9270553B1 (en) 2014-03-26 2014-03-26 Dynamic service debugging in a virtual environment
US15/043,970 Expired - Fee Related US10031837B1 (en) 2014-03-26 2016-02-15 Dynamic service debugging in a virtual environment

Family Applications After (1)

Application Number Title Priority Date Filing Date
US15/043,970 Expired - Fee Related US10031837B1 (en) 2014-03-26 2016-02-15 Dynamic service debugging in a virtual environment

Country Status (1)

Country Link
US (2) US9270553B1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733698A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 A kind of processing method and background service system of log information
CN109992485A (en) * 2019-03-20 2019-07-09 珠海天燕科技有限公司 A kind of debugging log providing method, terminal device and server
CN111669425A (en) * 2020-04-14 2020-09-15 福建天泉教育科技有限公司 Method for monitoring microservice interface and storage medium
US10824489B2 (en) 2017-09-30 2020-11-03 Oracle International Corporation Dynamic node rebalancing between container platforms
US10963283B2 (en) * 2018-12-27 2021-03-30 Nutanix, Inc. Configuration management for hybrid cloud
CN113760767A (en) * 2021-09-10 2021-12-07 元心信息科技集团有限公司 Debugging method and device of operating system, electronic equipment and computer readable storage medium
CN115509869A (en) * 2022-08-26 2022-12-23 国科础石(重庆)软件有限公司 Service call chain data visual display method and device and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6962156B2 (en) * 2017-11-30 2021-11-05 コニカミノルタ株式会社 Image processing equipment, image processing equipment control methods, image processing systems, and programs

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446221B1 (en) * 1999-05-19 2002-09-03 Arm Limited Debug mechanism for data processing systems
US20030233634A1 (en) * 1999-12-15 2003-12-18 Stephane Carrez Open debugging environment
US20040148548A1 (en) * 2003-01-24 2004-07-29 Moyer William C Method and apparatus for controlling a data processing system during debug
US6892324B1 (en) * 2000-07-19 2005-05-10 Broadcom Corporation Multi-channel, multi-service debug
US6934937B1 (en) * 2000-03-30 2005-08-23 Broadcom Corporation Multi-channel, multi-service debug on a pipelined CPU architecture
US6993585B1 (en) * 2000-12-22 2006-01-31 Unisys Corporation Method and system for handling transaction requests from workstations to OLTP enterprise server systems utilizing a common gateway
US20070244904A1 (en) * 2006-04-18 2007-10-18 Kristopher Durski Method and Architecture for Goal Oriented Applications, Configurations and Workflow Solutions on-the-Fly
US20090135731A1 (en) * 2007-11-19 2009-05-28 Qualcomm Incorporated Diagnostic monitoring by a wireless device
US7992133B1 (en) * 2006-02-14 2011-08-02 Progress Software Corporation Techniques for debugging distributed applications
US8135572B2 (en) * 2007-01-23 2012-03-13 Microsoft Corporation Integrated debugger simulator
US8689186B2 (en) * 2006-12-20 2014-04-01 Oracle America, Inc. Execution of a BPEL process by simulating partners

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324683B1 (en) * 1996-02-23 2001-11-27 International Business Machines Corporation System, method and program for debugging external programs in client/server-based relational database management systems
US5892941A (en) * 1997-04-29 1999-04-06 Microsoft Corporation Multiple user software debugging system
US7302676B2 (en) * 2000-08-07 2007-11-27 Siemens Aktiengesselschaft Method for debugging flowchart programs for industrial controllers
WO2002029548A2 (en) * 2000-10-03 2002-04-11 Sun Microsystems, Inc. Http transaction monitor with capacity to replay in debugging session
US7107578B1 (en) * 2001-09-24 2006-09-12 Oracle International Corporation Techniques for debugging computer programs involving multiple programming languages
US20050071243A1 (en) * 2003-09-30 2005-03-31 Anandhi Somasekaran Non-disruptive business process debugging and analysis
US9146832B2 (en) * 2005-10-14 2015-09-29 Oracle International Corporation Debugging functionality embedded in an application
US8706844B2 (en) * 2009-12-02 2014-04-22 Sap Ag Provision of troubleshooting tools in a network system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6446221B1 (en) * 1999-05-19 2002-09-03 Arm Limited Debug mechanism for data processing systems
US20030233634A1 (en) * 1999-12-15 2003-12-18 Stephane Carrez Open debugging environment
US6934937B1 (en) * 2000-03-30 2005-08-23 Broadcom Corporation Multi-channel, multi-service debug on a pipelined CPU architecture
US6892324B1 (en) * 2000-07-19 2005-05-10 Broadcom Corporation Multi-channel, multi-service debug
US6993585B1 (en) * 2000-12-22 2006-01-31 Unisys Corporation Method and system for handling transaction requests from workstations to OLTP enterprise server systems utilizing a common gateway
US20040148548A1 (en) * 2003-01-24 2004-07-29 Moyer William C Method and apparatus for controlling a data processing system during debug
US7992133B1 (en) * 2006-02-14 2011-08-02 Progress Software Corporation Techniques for debugging distributed applications
US20070244904A1 (en) * 2006-04-18 2007-10-18 Kristopher Durski Method and Architecture for Goal Oriented Applications, Configurations and Workflow Solutions on-the-Fly
US8689186B2 (en) * 2006-12-20 2014-04-01 Oracle America, Inc. Execution of a BPEL process by simulating partners
US8135572B2 (en) * 2007-01-23 2012-03-13 Microsoft Corporation Integrated debugger simulator
US20090135731A1 (en) * 2007-11-19 2009-05-28 Qualcomm Incorporated Diagnostic monitoring by a wireless device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733698A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 A kind of processing method and background service system of log information
CN108733698B (en) * 2017-04-19 2023-08-08 腾讯科技(深圳)有限公司 Log message processing method and background service system
US11132241B2 (en) 2017-09-30 2021-09-28 Oracle International Corporation API registry in a container platform for automatically generating client code libraries
US10824489B2 (en) 2017-09-30 2020-11-03 Oracle International Corporation Dynamic node rebalancing between container platforms
US10838788B2 (en) * 2017-09-30 2020-11-17 Oracle International Corporation Real-time debugging instances in a deployed container platform
US11681573B2 (en) 2017-09-30 2023-06-20 Oracle International Corporation API registry in a container platform providing property-based API functionality
US11755393B2 (en) 2017-09-30 2023-09-12 Oracle International Corporation API registry in a container platform for automatically generating client code libraries
US10963283B2 (en) * 2018-12-27 2021-03-30 Nutanix, Inc. Configuration management for hybrid cloud
CN109992485B (en) * 2019-03-20 2023-02-03 郑州阿帕斯科技有限公司 Debugging log providing method, terminal device and server
CN109992485A (en) * 2019-03-20 2019-07-09 珠海天燕科技有限公司 A kind of debugging log providing method, terminal device and server
CN111669425A (en) * 2020-04-14 2020-09-15 福建天泉教育科技有限公司 Method for monitoring microservice interface and storage medium
CN113760767A (en) * 2021-09-10 2021-12-07 元心信息科技集团有限公司 Debugging method and device of operating system, electronic equipment and computer readable storage medium
CN115509869A (en) * 2022-08-26 2022-12-23 国科础石(重庆)软件有限公司 Service call chain data visual display method and device and electronic equipment
CN115509869B (en) * 2022-08-26 2023-10-31 国科础石(重庆)软件有限公司 Method and device for visual display of service call chain data and electronic equipment

Also Published As

Publication number Publication date
US10031837B1 (en) 2018-07-24

Similar Documents

Publication Publication Date Title
US10031837B1 (en) Dynamic service debugging in a virtual environment
US10705942B1 (en) Simulated testing of API
US10091055B2 (en) Configuration service for configuring instances
AU2015321468B2 (en) Virtual desktop migration
US10628276B2 (en) Unit test framework for testing code in a gateway service
US20150227598A1 (en) Log data service in a virtual environment
US9648040B1 (en) Authorization check using a web service request
US9858105B1 (en) Service for managing custom virtual machine images
US10664535B1 (en) Retrieving log data from metric data
US11194572B2 (en) Managing external feeds in an event-based computing system
US20160344671A1 (en) Executing commands on virtual machine instances in a distributed computing environment
US10574724B2 (en) Automatic discovery of management nodes and generation of CLI using HA module
US10397051B1 (en) Configuration and testing of network-based service platform resources using a service platform specific language
US11023558B1 (en) Executing functions on-demand on a server utilizing web browsers
US9471352B1 (en) Capability based placement
US11627169B2 (en) Network-based Media Processing (NBMP) workflow management through 5G Framework for Live Uplink Streaming (FLUS) control
US10333979B1 (en) Multi-tenant network data validation service
JP2021168190A (en) Method, apparatus, electronic device, and storage medium for providing applet service capability
US20180239516A1 (en) Methods for generating and publishing microsites and devices thereof
US10176067B1 (en) On-demand diagnostics in a virtual environment
US9398041B2 (en) Identifying stored vulnerabilities in a web service
US10326844B2 (en) Cloud enabling resources as a service
Celesti et al. Evaluating alternative daas solutions in private and public openstack clouds
US20190121649A1 (en) User interface metadata from an application program interface
US11438398B2 (en) 3rd generation partnership project (3gpp) framework for live uplink streaming (flus) sink capabilities determination

Legal Events

Date Code Title Description
AS Assignment

Owner name: AMAZON TECHNOLOGIES, INC., NEVADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:HIGGINS, CHRIS;REEL/FRAME:032965/0076

Effective date: 20140429

STCF Information on status: patent grant

Free format text: PATENTED CASE

FEPP Fee payment procedure

Free format text: MAINTENANCE FEE REMINDER MAILED (ORIGINAL EVENT CODE: REM.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

LAPS Lapse for failure to pay maintenance fees

Free format text: PATENT EXPIRED FOR FAILURE TO PAY MAINTENANCE FEES (ORIGINAL EVENT CODE: EXP.); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20200223