WebLogic and database editions
- Follow managed-server reconciliation and the database edition selected for a loan request.
WebLogic release assembly
WebLogic applications, shared libraries and mounted runtime files
What a server release selects
- The FileUpload EAR contains the upload and health WARs. The application carrier holds archives and deployment files. Separate carriers deliver shared loan and upload libraries.
- The server image supplies Java, client tools and startup scripts. The domain home and WebLogic/Fusion Middleware binaries live on persistent mounts.
- The chart and release image carry the selected deployment definitions through staging. The server Pod consumes the selected runtime and payload images.
Follow a replacement member
- Init containers stage kernel/application files and shared libraries. Setup prepares Java in Pod-local storage and copies the selected application payload to the mounted application volume.
- The managed server starts with the mounted domain home, binaries, applications and logs. An initialized FileUpload servlet starts a timer and a local worker pool.
- Replacing a Pod recreates its emptyDir and JVM. Persistent upload input and committed row state can survive replacement. Check claim ownership before replaying work.
- Prestage repeated content only after measuring pull, staging, JVM boot and first useful poll separately. An unavailable PVC can block a replacement even on a node with warm image layers.
Prevent mixed application and library generations
- Start with a manifest gate at the existing release boundary. Record the EAR inventory, compatible module set, server image, chart identity, target and mounted runtime version.
- Before admission, compare the candidate’s staged file hashes with that inventory in a scratch environment. Exercise its WebLogic targets and datasource mappings.
- An incompatible common library should fail candidate validation while the previous release remains usable. Verify a full replacement Pod from retained inputs before retiring R1.
- The example contains placeholder image digests. Shared application paths need versioned publication or single-writer coordination wherever multiple members can write the same namespace.
Illustrative candidate release recordjson
{
"example": "Illustrative promotion record for a FileUpload candidate",
"candidate": "R2",
"rollbackCandidate": "R1",
"assembly": {
"applicationEar": "FileUpload.ear",
"expectedWarRoles": [
"upload servlet",
"framework health"
],
"expectedLibraryRoles": [
"upload processing",
"loan creation"
]
},
"immutableInputs": {
"serverImage": "registry.example/lcm-server@sha256:1111111111111111111111111111111111111111111111111111111111111111",
"applicationCarrier": "registry.example/upload-ear@sha256:2222222222222222222222222222222222222222222222222222222222222222",
"moduleCarrier": "registry.example/loan-module@sha256:3333333333333333333333333333333333333333333333333333333333333333"
},
"requiredChecks": [
"Resolve each image digest in the target registry",
"Match archive members and staged file hashes after init",
"Confirm WebLogic target, datasource mapping and compatible FMW/domain-home state",
"Retain verified R1 images, mounted files and compatible database state"
],
"digestNote": "Placeholder digests. A production record also carries the checksums of the actual archive and mounted release set."
}
WebLogic server membership
WebLogic Kubernetes Operator 4.2.16 · Domain v9 · Cluster v1
Separate provisioned topology from desired membership
- Offline WLST creates the initial domain home. Online cluster configuration subsequently targets applications, JDBC/JMS resources and Work Managers through the Admin Server.
- The v9 Domain references a Kubernetes Cluster resource. Its spec.clusterName identifies the WebLogic cluster already configured in the domain home. The operator watches requested membership and reconciles server Pods.
- Introspection can discover domain topology when reconciliation requires it. The operator controls the Pod specification and Kubernetes schedules the Pod and runs its declared init sequence.
- The earlier v8 Domain shape embeds cluster settings. Check the installed CRD before reusing a configuration fragment. Oracle Domain and Cluster resources · Operator 4.2.16.
Illustrative FileUpload Cluster declarationyaml
# Illustrative WKO 4.2.x Cluster declaration for a scale-from-zero test.
# Prerequisites: WKO and CRDs installed, watched namespace, an existing v9
# Domain referencing lab-upload, a provisioned domain home with FileUpload
# configured, and accessible compatible images, credentials and mounts.
apiVersion: weblogic.oracle/v1
kind: Cluster
metadata:
name: lab-upload
namespace: lcm-example
labels:
weblogic.domainUID: lab-host
spec:
clusterName: FileUpload
replicas: 1
# Here the operator reconciles one FileUpload member from the requested replica count.
# Inspect desired/current/ready status and init exit reasons separately.
Diagnose where membership stopped
- If the Domain omits the intended Cluster resource, correct its reference before expecting server membership to change.
- If a member Pod exists but init work stalls, check the failing image, mounted target and copy step. WebLogic can start only after init completes.
- If the managed server is running but receives no application traffic, check its readiness and configured application targets.
Check all three transitions before increasing consumers
- Confirm the authority that changes replica intent. An alert, the custom scaling resource and a requested count each describe different stages.
- If desired exceeds ready, inspect operator events, placement, image resolution, init status, mounts and server startup. Additional replicas can repeat the same failed initialization.
- If members are ready but offer backlog grows, inspect poll/claim progress, JDBC wait, broker lag and CP completion before scaling. One more JVM starts another timer and consumes part of the same downstream budget.
- Run a bounded zero-to-one rehearsal with synthetic input. Record time to ready, first successful claim and terminal business outcome. Choose scale thresholds from those measurements.
Database edition cutover
Loan-creation proof of concept · Oracle Database 19c editions
Session state in the local POC
- The selected loan service writes its key into thread context. The query executor resolves a configured edition and selects that edition on the Oracle session before reading the logical offer view.
- The existing-customer and new-customer paths read different projections. Before rollout, establish how every borrower selects its edition and resets its session after an exception.
- Run the session/shape probe through the same borrowed connection as the application. Force an exception, return the connection, then borrow it for the other path. Assert the expected edition and known-row mapper result.
Inspect the borrowed session and view shapesql
-- Oracle Database 19c reference. Illustrative read-only checks.
-- Run through the same borrowed datasource connection as the application.
-- Compare service and edition with the approved route contract before a write.
SELECT SYS_CONTEXT('USERENV', 'SERVICE_NAME') AS db_service,
SYS_CONTEXT('USERENV', 'SESSION_EDITION_NAME') AS session_edition
FROM dual;
-- Replace the view and columns with a controlled test projection for each
-- mapper. This zero-row shape check tests name resolution and column presence.
-- A separate fixture with known rows must test types, nullability and meaning.
SELECT offer_id, available_limit
FROM example_offer_view
WHERE 1 = 0;
First try a backwards-compatible contract
- If both mappers can consume one stable projection, deploy the compatible database change first and validate both application generations. This avoids maintaining a second connection pool.
- When concurrent incompatible projections are required, bind each supported route and generation to an explicit datasource pool and DB service with the required initial edition. Validate all paths, including queue consumers.
- New physical sessions inherit the service’s initial edition. Verify the actual service/edition at borrow and discard an unexpected session before business work. Updating the service does not retarget existing pooled sessions.
Illustrative two-generation pool contractjson
{
"example": "Illustrative server-to-datasource routing contract",
"routes": [
{
"release": "R1",
"loanPath": "existing-customer",
"pool": "p1",
"dbService": "offers_r1",
"expectedEdition": "OFFERS_V1",
"mapper": "offer-v1"
},
{
"release": "R2",
"loanPath": "existing-customer",
"pool": "p2",
"dbService": "offers_r2",
"expectedEdition": "OFFERS_V2",
"mapper": "offer-v2"
}
],
"promotionRequires": [
"Verified service and session edition on fresh and reused pool connections",
"Known-row mapper checks for each supported loan path and background worker",
"Mixed-version writes remain readable by R1 and R2",
"Room for both pool generations under the DB session ceiling"
],
"rollback": {
"precondition": "R1 code, pool, edition and write contract remain usable",
"steps": [
"Route new work to the validated previous generation",
"Track and drain outstanding R2 work",
"Reconcile effects and persistent messages across the change"
]
},
"cleanupRequires": [
"All candidate and rollback readers released",
"No remaining pool sessions or queued work require the old contract",
"Database owner authorizes edition retirement"
]
}
Rehearse promotion and rollback
| Check | Decision |
|---|---|
| Release R2 expects a new column | Test view name, types, null handling and a known offer on fresh and reused R2 connections. |
| R1 and R2 write during overlap | Test old/new readers and writers against the shared table. Plan data transformation and crossedition triggers where mixed writes need them. |
| A background job lacks an edition mapping | Hold that job and alert. Keep the existing bounded worker path serving. |
| New pools exceed DB session limits | Reduce per-generation pool limits or defer overlap until capacity is available. |
| R2 fails after accepting work | Stop new R2 admission, retain in-flight ownership and reconcile completed DB/CP effects before replay. |
- Preserve R1 code, resources, pool, edition and compatible rows through the rollback window. Helm rollback can restore release resources. Physical data changes, outstanding JMS work and remote CP effects require their own recovery.
- Retire old sessions, mappers and edition objects only after queued work drains and the database owner confirms retirement eligibility.