Daemon Proxy Setting Caching for Package Update Overhead

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing methods for managing user proxy settings in computer systems incur significant overhead due to repeated reading and relaying of proxy settings during package updates, slowing down transactions and increasing management overhead.

Innovation Solution

A daemon is introduced to store user proxy settings in a database using a user identifier (UID) and session identifier as a key, allowing the proxy setting to be retrieved once and reused throughout the session, eliminating the need for repeated requests during multiple transactions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the client reads and relays the user's proxy setting to the daemon at the start of every transaction, then the proxy setting is always current and accurate, but the transaction startup time increases and overhead accumulates with repeated requests

Engineering Contradiction:
Improveproxy setting accuracyVSAvoidtransaction startup time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The proxy setting is read and stored in the database before the transaction begins. The daemon retrieves the proxy setting once at the start of the session and caches it, eliminating the need to read and relay the setting at the start of every subsequent transaction. This preliminary action ensures the setting is available when needed while avoiding repeated retrieval overhead.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

Instead of repeatedly reading the original proxy setting from the user's configuration, the system creates and stores a copy of the proxy setting in the database. The daemon then uses this cached copy for multiple transactions, reducing I/O operations and improving performance while maintaining the accuracy of the proxy configuration.

Inventive Principle:
Principle #26Copying

2Reliability

If the client requests package updates multiple times in a session with repeated proxy setting retrievals, then each transaction has the latest proxy information, but significant overhead is incurred on package update management

Engineering Contradiction:
Improveproxy setting consistencyVSAvoidpackage update management efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The proxy setting retrieval operation is extracted from the transaction flow and performed once during session initialization. The extracted proxy setting is then stored in the database and reused for multiple package update transactions, eliminating the repetitive overhead of reading and relaying the setting with each update request while maintaining consistency.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The proxy setting is established once at the beginning of the session and maintained continuously throughout multiple package update transactions. By caching the setting in the database and retrieving it once, the system ensures continuous availability of the proxy configuration without the interruption and overhead of repeated retrieval operations.

Inventive Principle:
Principle #20Continuity of useful action

3Use of energy by moving object

If the daemon loads and unloads frequently, then system resources are optimized for idle periods, but proxy settings may be lost requiring re-retrieval

Engineering Contradiction:
Improvedaemon resource usageVSAvoidproxy setting re-retrieval time
Core Design Contradiction:
Use of energy by moving objectVSLoss of time

Solution Approach 1:

The proxy setting storage is merged with the persistent database system rather than keeping it only in the daemon's volatile memory. This combination allows the daemon to safely load and unload based on system resource conditions while the proxy settings remain persisted in the database, eliminating the risk of data loss and the need for re-retrieval after daemon restarts.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS9069639B2Managing a user proxy configuration in a daemon that frequently loads and unloads
Publication Date: 2015.06.30 RED HAT INC
  • US9069639B2 patent drawing
  • US9069639B2 patent drawing
  • US9069639B2 patent drawing

AI summary

A user proxy setting is managed by a computer system that frequently performs package updates. A session starts when a user logs onto the computer system. The session registers the proxy setting of the user with a daemon that quits after a period of inactivity and restarts upon request. The daemon stores the proxy setting in a database using a user identifier (UID) and a session identifier as a key. The daemon then performs package updates multiple times during the session via a network, each time using the proxy setting stored in the database.