Um die Standardeinstellungen des Servers zu ändern, müssen Sie über ssh auf die Serverkonsole zugreifen.
Im Persistenzordner von simplifer können Sie die Servereinstellungen ändern. Die Standardeinstellung für diesen Pfad ist /var/lib/simplifier/simplifier/conf/ (bis Release 8 war es: /var/lib/simplifier/data/conf/)
Schritt 1 – Zum Ordner wechseln
cd /var/lib/simplifier/simplifier/conf/
Schritt 2 – Erstellen der Datei include.conf
Wenn die include.conf nicht existiert, erstellen Sie eine neue Datei
touch include.conf
Schritt 3 – Einstellungen ändern
Um die Einstellungen zu ändern, öffnen Sie die Datei über vim oder nano
nano include.conf
Schritt 4 – Starten Sie den Simplifier neu
Speichern Sie die Datei, und starten Sie den Vereinfachungscontainer neu, um die Einstellungen zu übernehmen.
In einigen Fällen kann es erforderlich sein, die HTTP-Timeouts oder Max. Verbindungen je nach Ihrer Umgebung zu verlängern
akka { http { server {# The time after which an idle connection will be automatically closed. # Set to `infinite` to completely disable idle connection timeouts. idle-timeout = 60 s # Defines the default time period within which the application has to # produce an HttpResponse for any given HttpRequest it received. # The timeout begins to run when the *end* of the request has been # received, so even potentially long uploads can have a short timeout. # Set to `infinite` to completely disable request timeout checking. # # Make sure this timeout is smaller than the idle-timeout, otherwise, # the idle-timeout will kick in first and reset the TCP connection # without a response. # # If this setting is not `infinite` the HTTP server layer attaches a # `Timeout-Access` header to the request, which enables programmatic # customization of the timeout period and timeout response for each # request individually. request-timeout = 20 s
# the maximum number of concurrently accepted connections when binding a server using # `Http().newServerAt().bindXYZ()` methods. # # This setting doesn't apply to the `Http().bind` method which will still # deliver an unlimited backpressured stream of incoming connections. # # Note, that this setting limits the number of the connections on a best-effort basis. # It does *not* strictly guarantee that the number of established TCP connections will never # exceed the limit (but it will be approximately correct) because connection termination happens # asynchronously. It also does *not* guarantee that the number of concurrently active handler # flow materializations will never exceed the limit for the reason that it is impossible to reliably # detect when a materialization has ended. max-connections = 1024
} } }
Wenn Sie Probleme mit größeren Payloads bei der Nutzung unserer Client-API oder REST-, SOAP- oder oDATAv2-Aufrufen haben, verwenden Sie die folgenden Einstellungen:
# Adjust HTTP Max Chunk Size if Payload is bigger than 1mb (default value) akka { http { parsing { max-chunk-size = 5m } } }
Simplifier setzt CORS-Header seit MAKERS CHOICE 25-01 automatisch. Sie können den Wert für den Parameter Access-Control-Allow-Origin anpassen:
akka-http-cors { # default: allowed-origins = "*" allowed-origins = ["https://example.com","https://other.host"] }
Wenn Sie einen Proxy-Server für den Zugriff auf das Internet verwenden, müssen Sie die Proxy-Server-Informationen im Simplifier wie folgt einrichten:
proxy { host: "proxy.org.com" port: 3128 byPassUrls: [ "google.de", "localhost" ] }
Wenn Sie mehr Versionen für das Business Function Changelog benötigen, verwenden Sie die folgende Einstellung:
#business object versioning versioning { #defines the maximum number of BusinessObject Version History maximumEntries: 200 }
Um weitere SAP-Funktionsbausteine im App-Wizard zu sammeln, können Sie entweder den Suchbegriff einschränken oder die mögliche Liste der Suchergebnisse mit der folgenden Einstellung erweitern:
#sap-rfc connector assistent rfc { #defines the maximum amount of returned operations by the backend (necessary due to the old metadata interface and some performance issues as well as high payload amounts) suggestionLimit: 300 }
Bei sehr großen Simplifier-Anwendungen kann die Build-Zeit für die Generierung des Quellcodes wie in der folgenden Einstellung verlängert werden:
# app deployment toolchain toolchain { # general timeout for the UI5 build toolchain. timeout: 120 # timeout for building an application. # the time a deployment of an application can take. # If the deployment takes longer than this value, deplyoment is stopped and an error is thrown. deploymentTimeout: 120 # timeout for retrieving UI5 metadata # this value can have inpact on the WYSIWYG preview propertiesLookupTimeout: 30 }
Im Falle eines Log-Eintrags, der dieser Fehlermeldung ähnelt, können Sie das Limit erhöhen,
[ERROR] businessObjectCall: jsonParseHandler: com.fasterxml.jackson.core.exc.StreamConstraintsException: String length (20047596) exceeds the maximum length (20000000)
indem Sie den folgenden Eintrag hinzufügen:
json {
parsing {
maxStringLength = 2147483647
}
}
Festlegen von Timeouts für die Kommunikation zwischen den verschiedenen Simplifier-Containern:
hybrid { timeout { business-object = 10 minutes connector = 10 minutes } }
database.pool-size = 50
Mit dieser Option wird die Anzahl der parallelen Datenbankverbindungen festgelegt, die dem Simplifier-Backend zur Verfügung stehen sollen. Wenn das Herstellen einer neuen Verbindung mehr als 100 ms dauert, wird eine Warnung in die Protokolldatei geschrieben, in der vorgeschlagen wird, diesen Wert zu erhöhen.