Python Speicherbedarf

Unsere Python / WSGI Container Konfiguration ist sehr flexibel und kann individuell auf Ihren Bedarf angepasst werden.

Bitte kontaktieren Sie uns falls sie von unserem Standard (ein Container mit jeweils einem Prozess auf zwei Knoten) abweichen wollen.

Berechnung des verfügbaren Speichers

CONTRACT_RSS = 128.0   # Setzen Sie hier Ihr gebuchtes Python RSS Quota ein (in MiB)

# Unsere Standard Konfiguration
CFG_CONTAINER_RSS = 8.0
CFG_CONTAINER_PROCESSES = 1
CFG_CONTAINER_DEPLOYMENTS = 2

CONTAINER_RSS = CFG_CONTAINER_RSS * CFG_CONTAINER_DEPLOYMENTS
APPLICATION_PROCESSES = CFG_CONTAINER_DEPLOYMENTS * CFG_CONTAINER_PROCESSES
AVAILABLE_RSS = CONTRACT_RSS - CONTAINER_RSS
AVAILABLE_APPLICATION_RSS = AVAILABLE_RSS / APPLICATION_PROCESSES

print('RSS available (for application): %.02f MiB' % AVAILABLE_APPLICATION_RSS)

Bei unserer Basishosting Standardkonfiguration ergeben sich hier die angegebenen 56.00 MiB, die Ihre Applikation letztendlich pro Prozess zur Verfügung hat.

Berechnung des benötigten Speichers

APPLICATION_RSS = 40.0 # Eine typische kleine Django Seite mit 1-2 weiteren Modulen (in MiB)

# Unsere Standard Konfiguration
CFG_CONTAINER_RSS = 8.0
CFG_CONTAINER_PROCESSES = 1
CFG_CONTAINER_DEPLOYMENTS = 2

CONTAINER_RSS = CFG_CONTAINER_RSS * CFG_CONTAINER_DEPLOYMENTS
APPLICATION_PROCESSES = CFG_CONTAINER_DEPLOYMENTS * CFG_CONTAINER_PROCESSES
TOTAL_APPLICATION_RSS = APPLICATION_RSS * APPLICATION_PROCESSES
TOTAL_RSS = CONTAINER_RSS + TOTAL_APPLICATION_RSS

print('RSS required (excluding container overhead): %.02f MiB' % TOTAL_APPLICATION_RSS)
print('RSS required (including container overhead): %.02f MiB' % TOTAL_RSS)

Dieses Beispiel ergibt ein Speicherbedarf von 96.00 MiB.