Set up disaster recovery for Oracle JD Edwards EnterpriseOne with AWS Elastic Disaster Recovery - AWS Prescriptive Guidance
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Set up disaster recovery for Oracle JD Edwards EnterpriseOne with AWS Elastic Disaster Recovery

Thanigaivel Thirumalai, Amazon Web Services

Summary

Natural catastrophes, application failures, and service disruptions can harm revenue and cause downtime for corporate applications. To reduce the impact of such events, plan for disaster recovery (DR) if your organization uses JD Edwards EnterpriseOne enterprise resource planning (ERP) systems and other mission-critical and business-critical software. 

This pattern explains how businesses can use AWS Elastic Disaster Recovery as a DR option for their JD Edwards EnterpriseOne applications. It also outlines the steps for using Elastic Disaster Recovery failover and failback to construct a cross-Region DR strategy for databases hosted on an Amazon Elastic Compute Cloud (Amazon EC2) instance in the AWS Cloud.

Note

This pattern requires the primary and secondary Regions for the cross-Region DR implementation to be hosted on AWS.

Oracle JD Edwards EnterpriseOne is an integrated ERP software solution for midsize to large companies in a wide range of industries.

AWS Elastic Disaster Recovery minimizes downtime and data loss with fast, reliable recovery of on-premises and cloud-based applications by using affordable storage, minimal compute, and point-in-time recovery.

AWS provides four core DR architecture patterns. This pattern focuses on setup, configuration, and optimization by using the pilot light strategy. This strategy helps you create a lower-cost DR environment where you initially provision a replication server for replicating data from the source database, and you provision the actual database server only when you start a DR drill and recovery. This strategy removes the expense of maintaining a database server in the DR Region. Instead, you pay for a smaller Amazon EC2 instance that serves as a replication server.

Prerequisites and limitations

Prerequisites

  • An active AWS account.

  • A JD Edwards EnterpriseOne application running on Oracle Database or Microsoft SQL Server with a supported database in a running state on a managed EC2 instance. This application should include all JD Edwards EnterpriseOne base components (Enterprise Server, HTML Server, and Database Server) installed in one AWS Region.

  • An AWS Identity and Access Management (IAM) role to set up the Elastic Disaster Recovery service.

  • The network for running Elastic Disaster Recovery configured according to the required connectivity settings.

  • An IAM role with the AWSElasticDisasterRecoveryEc2InstancePolicy policy, to attach as an instance profile to each source EC2 instance.

Limitations

  • You can use this pattern to replicate all tiers, unless the database is hosted on Amazon Relational Database Service (Amazon RDS), in which case we recommend that you use the cross-Region copy functionality of Amazon RDS.

  • Elastic Disaster Recovery isn’t compatible with CloudEndure Disaster Recovery, but you can upgrade from CloudEndure Disaster Recovery. For more information, see the FAQ in the Elastic Disaster Recovery documentation.

  • Amazon Elastic Block Store (Amazon EBS) limits the rate at which you can take snapshots. You can replicate a maximum of 300 servers in a single AWS account by using Elastic Disaster Recovery. To replicate more servers, you can use multiple AWS accounts or multiple target AWS Regions. You must set up Elastic Disaster Recovery separately for each account and Region. For more information, see Best practices in the Elastic Disaster Recovery documentation.

  • The source workloads (the JD Edwards EnterpriseOne application and database) must be hosted on EC2 instances. This pattern doesn’t support workloads that are on premises or in other cloud environments.

  • This pattern focuses on the JD Edwards EnterpriseOne components. A full disaster recovery (DR) and business continuity plan (BCP) includes other core services, such as:

    • Networking (Amazon Virtual Private Cloud (Amazon VPC), subnets, and security groups)

    • Microsoft Active Directory

    • Amazon WorkSpaces

    • Elastic Load Balancing

    • A managed database service such as Amazon RDS

For additional information about prerequisites, configurations, and limitations, see the Elastic Disaster Recovery documentation.

Product versions

  • Oracle JD Edwards EnterpriseOne (Oracle and SQL Server supported versions based on Oracle Minimum Technical Requirements)

Architecture

Target technology stack

  • A single Region and single virtual private cloud (VPC) for production and non-production, and a second Region for disaster recovery (DR)

  • A single Availability Zone to help provide low latency between servers

  • An Application Load Balancer that distributes network traffic to improve the scalability and availability of your applications across multiple Availability Zones

  • Amazon Route 53 to provide Domain Name System (DNS) configuration

  • Amazon WorkSpaces to provide users with a desktop experience in the cloud

  • Amazon Simple Storage Service (Amazon S3) for storing backups, files, and objects

  • Amazon CloudWatch for application logging, monitoring, and alarms

  • AWS Elastic Disaster Recovery for disaster recovery

Target architecture

The following diagram shows the cross-Region disaster recovery architecture for JD Edwards EnterpriseOne using Elastic Disaster Recovery.

Architecture for JD Edwards EnterpriseOne cross-Region DR on AWS

Procedure

The following is a high-level overview of the process. For details, see the Epics section.

  • Elastic Disaster Recovery replication begins with an initial sync. During the initial sync, the AWS Replication Agent replicates all the data from the source disks to the appropriate resource in the staging area subnet.

  • Continuous replication continues indefinitely after the initial sync is complete.

  • After you install the agent and replication starts, you review the launch parameters, which include service-specific configurations and an Amazon EC2 launch template. When the console indicates that the source server is ready for recovery, you can start instances.

  • When Elastic Disaster Recovery issues a series of API calls to begin the launch operation, it immediately launches the recovery instance on AWS according to your launch settings. The service automatically launches a conversion server during startup.

  • After the conversion is complete, AWS launches the new instance, and it is ready for use. The volumes associated with the launched instance represent the source server state at the time of launch. The conversion process changes the drivers, network, and operating system license so that the instance boots natively on AWS.

  • After the launch, the newly created volumes no longer stay in sync with the source servers. The AWS Replication Agent continues to routinely replicate changes made to your source servers to the staging area volumes, but the launched instances do not reflect those changes.

  • When you start a new drill or recovery instance, the instance reflects the most recent state that Elastic Disaster Recovery replicated from the source server to the staging area subnet.

Note

The process works both ways: for failover from a primary AWS Region to a DR Region, and for failback to the primary site after it recovers. You can prepare for failback by reversing the direction of data replication from the target machine back to the source machine in a fully orchestrated way.

This pattern provides the following benefits:

  • Flexibility: Replication servers scale out and scale in based on dataset and replication time, so you can perform DR tests without disrupting source workloads or replication.

  • Reliability: The replication is continuous and non-disruptive.

  • Automation: This solution provides a unified, automated process for test, recovery, and failback.

  • Cost optimization: You replicate and pay for only the volumes that you need, and you pay for compute resources at the DR site only when you activate those resources. You can use a cost-optimized replication instance (we recommend a t3.small instance type, which is the default and most cost-effective for most workloads) for multiple sources or a single source with a large EBS volume.

Automation and scale

When you perform disaster recovery at scale, the JD Edwards EnterpriseOne servers will have dependencies on other servers in the environment. For example:

  • JD Edwards EnterpriseOne application servers that connect to a JD Edwards EnterpriseOne supported database on boot have dependencies on that database.

  • JD Edwards EnterpriseOne servers that require authentication and need to connect to a domain controller on boot to start services have dependencies on the domain controller.

For this reason, we recommend that you automate failover tasks. For example, you can use AWS Lambda or AWS Step Functions to run the JD Edwards EnterpriseOne startup scripts and make load balancer changes, which automates the end-to-end failover process. For more information, see the blog post Creating a scalable disaster recovery plan with AWS Elastic Disaster Recovery.

Tools

AWS services

Best practices

General best practices

  • Have a written plan of what to do in the event of a real recovery event.

  • After you configure Elastic Disaster Recovery, create an AWS CloudFormation template that can re-create the configuration on demand. Determine the order in which to launch servers and applications, and record this order in the recovery plan.

  • Perform recovery drills on a regular schedule (standard Amazon EC2 rates apply).

  • Monitor the health of the ongoing replication by using the Elastic Disaster Recovery console or programmatically.

  • Protect the point-in-time snapshots and confirm before terminating the instances.

  • Use an IAM instance profile that has the AWSElasticDisasterRecoveryEc2InstancePolicy policy to install the AWS Replication Agent on EC2 source servers. Avoid long-term access keys, and grant only the permissions needed to install the agent.

  • Enable termination protection for recovery instances in a real disaster recovery scenario.

  • Do not use the Disconnect from AWS action in the Elastic Disaster Recovery console for servers that you launched recovery instances for, even in the case of a real recovery event. Performing a disconnect terminates all replication resources related to these source servers, including your point-in-time (PIT) recovery points.

  • Modify the PIT policy to adjust the number of days that Elastic Disaster Recovery retains snapshots.

  • Edit the launch template in Elastic Disaster Recovery launch settings to set the correct subnet, security group, and instance type for your target server.

  • Automate the end-to-end failover process by using Lambda or Step Functions to automate JD Edwards EnterpriseOne startup scripts and load balancer changes.

JD Edwards EnterpriseOne optimization and considerations

  • Move PrintQueue into the database.

  • Move MediaObjects into the database.

  • Exclude the logs and temp folder from batch and logic servers.

  • Exclude the temp folder from Oracle WebLogic.

  • Create scripts for startup after the failover.

  • Exclude the tempdb for SQL Server.

  • Exclude the temp file for Oracle.

Epics

TaskDescriptionSkills required

Set up the replication network.

Implement your JD Edwards EnterpriseOne system in the primary AWS Region and identify the AWS Region for DR. Follow the steps in the Replication network requirements section of the Elastic Disaster Recovery documentation to plan and set up your replication and DR network.

AWS administrator

Determine RPO and RTO.

Identify the recovery time objective (RTO) and recovery point objective (RPO) for your application servers and database.

Cloud architect, DR architect

Enable replication for Amazon EFS.

If applicable, enable replication from the AWS primary to DR Region for shared file systems such as Amazon Elastic File System (Amazon EFS) by using AWS DataSync, rsync, or another appropriate tool.

Cloud administrator

Manage DNS in case of DR.

Identify the process to update the Domain Name System (DNS) during the DR drill or actual DR.

Cloud administrator

Create an IAM role for setup.

Follow the instructions in the Elastic Disaster Recovery initialization and permissions section of the Elastic Disaster Recovery documentation to create an IAM role to initialize and manage the AWS service.

Cloud administrator

Set up VPC peering.

Make sure that the source and target VPCs are peered and accessible to each other. For configuration instructions, see the Amazon VPC documentation.

AWS administrator
TaskDescriptionSkills required

Initialize Elastic Disaster Recovery.

Open the Elastic Disaster Recovery console, choose the target AWS Region (where you will replicate data and launch recovery instances), and then choose Set default replication settings.

AWS administrator

Set up replication servers.

  1. In the Set up replication servers pane, enter the staging area subnet and replication server instance type. The t3.small instance type is selected by default. Configure this setting based on your requirements, and remember to consider instance pricing. For more information, see Amazon EC2 pricing.

  2. In the Service access section, choose View details to review the service linked role and additional policies created during service initialization.

  3. Choose Next.

AWS administrator

Configure volumes and security groups.

  1. In the Volumes and security groups pane, select the EBS volume type for the replication server and set Amazon EBS encryption to Default.

  2. Select Always use AWS Elastic Disaster Recovery security group so that Elastic Disaster Recovery automatically attaches and monitors the default security group.

  3. Choose Next.

AWS administrator

Configure additional settings.

  1. In the Additional settings pane, configure data routing and throttling, PIT policy, and tags.

    • Data routing and throttling control how data flows from the external server to the replication servers. Choose Use private IP for data replication. Otherwise, replication servers will be automatically assigned a public IP, and data will flow over the public internet.

    • In the Point in time (PIT) policy section, configure a retention policy that determines the duration after which snapshots are not required. The default retention period is seven days.

    • In the Tags section, add custom tags to resources created by Elastic Disaster Recovery in your AWS account.

  2. Choose Next, review the settings in the next pane, and then choose Create default to create the default template.

AWS administrator
TaskDescriptionSkills required

Attach an IAM instance profile to the source servers.

Because the source servers in this pattern are EC2 instances, use an IAM instance profile for agent installation instead of long-term access keys. Create an IAM role that has only the AWS managed policy AWSElasticDisasterRecoveryEc2InstancePolicy and no other permissions. In the Amazon EC2 console, select each source instance and choose Actions, Security, Modify IAM role. Then attach the role. The AWS Replication Agent uses the instance profile's short-lived credentials, so you don't need to create or store an access key ID or secret access key. For more information, see Using an instance profile for agent installation in AWS in the Elastic Disaster Recovery documentation.

If you can't use an instance profile, generate temporary credentials instead. Create an IAM role that has only the AWSElasticDisasterRecoveryAgentInstallationPolicy policy, and call the AWS Security Token Service (AWS STS) AssumeRole API with the shortest session duration that covers the installation. When the installer prompts you, enter the temporary access key ID, secret access key, and session token. Don't create long-term IAM user access keys for agent installation. If your organization requires them, limit them to the agent installation policy only. Then deactivate and delete them as soon as the installation finishes.

AWS administrator

Check requirements.

Check and complete the prerequisites in the Elastic Disaster Recovery documentation for installing the AWS Replication Agent.

AWS administrator

Install the AWS Replication Agent.

Follow the installation instructions for your operating system to install the AWS Replication Agent.

  • For Microsoft Windows: Download the setup files and run the .exe file as an administrator.  Respond to the prompts to complete the installation.

  • For Linux: Copy the following commands (in the order presented) and paste them into your Secure Shell (SSH) session. The first command downloads the installer and the second command runs it.

    wget -O ./aws-replication-installer-init.py https://aws-elastic-disaster-recovery-us-west-2.s3.amazonaws.com/latest/linux/aws-replication-installer-init.py
    sudo python3 aws-replication-installer-init.py

    Respond to the prompts to complete the installation.

    Note

    Change the URL to reflect your Region.

Repeat these steps for the remaining server.

Note

When you attach an instance profile, the installer uses its credentials, so you don't enter access keys. If you used temporary AWS STS credentials, you don't need to revoke them because they expire on their own. When installation is complete on all servers, confirm that IAM contains no remaining installation access keys. Also confirm that you didn't save any credentials in shell history, scripts, or files on the source server.

AWS administrator

Monitor the replication.

Return to the Elastic Disaster Recovery Source servers pane to monitor the replication status. The initial sync will take some time depending on the size of the data transfer.

When the source server is fully synced, the server status will be updated to Ready. This means that a replication server has been created in the staging area, and the EBS volumes have been replicated from the source server to the staging area.

AWS administrator
TaskDescriptionSkills required

Edit launch settings.

To update the launch settings for the drill and recovery instances, on the Elastic Disaster Recovery console, select the source server, and then choose Actions, Edit launch settings. Or you can choose your replicating source machines from the Source servers page, and then choose the Launch Settings tab. This tab has two sections: General launch settings and EC2 launch template.

AWS administrator

Configure general launch settings.

Revise the general launch settings according to your requirements.

  • Instance type right sizing: If you choose Basic, Elastic Disaster Recovery bypasses the instance type you selected in the Amazon EC2 launch template and automatically chooses the instance type based on the operating system, CPU, and RAM of the source server.

  • Copy private IP: Choose whether you want Elastic Disaster Recovery to ensure that the private IP used by the drill or recovery instance matches the private IP used by the source server. If you chose Yes, make sure that the IP range of the subnet you set in the Amazon EC2 launch template includes the private IP address.

For more information, see General launch settings in the Elastic Disaster Recovery documentation.

AWS administrator

Configure the Amazon EC2 launch template.

Elastic Disaster Recovery uses Amazon EC2 launch templates to launch drill and recovery instances for each source server. The launch template is created automatically for each source server that you add to Elastic Disaster Recovery after you install the AWS Replication Agent.

You must set the Amazon EC2 launch template as the default launch template if you want to use it with Elastic Disaster Recovery.

For more information, see EC2 Launch Template in the Elastic Disaster Recovery documentation.

AWS administrator
TaskDescriptionSkills required

Initiate Drill

  1. On the Elastic Disaster Recovery console, open the Source servers page and verify that the status of the source server is Ready.

  2. Select all the source servers that you want to perform the DR drill for.

  3. From the Initiate recovery job menu, choose Initiate drill and select the appropriate point-in-time snapshot. This starts a recovery job for the selected source servers. You can monitor the status of the job on the Recovery job history tab.

    The launched drill instance also appears on the Recovery instances page.

    Note

    Further changes to the source server will be synced to the replication server, not to the drill instance.

  4. Test and verify the DR drill instance.

  5. On the Recovery instances page, select the drill instance, and then choose Actions, Disconnect from AWS. This deletes the AWS Replication Agent from the recovery instance and removes all resources associated with the recovery instance from Elastic Disaster Recovery.

  6. Choose Delete recovery instances. This deletes the representation of the instance from the Elastic Disaster Recovery console and completely disassociates the instance from the Elastic Disaster Recovery service. It does not delete the underlying EC2 instance.

  7. Terminate the DR drill instance from the Amazon EC2 console.

For more information, see Preparing for failover in the Elastic Disaster Recovery documentation.

AWS administrator

Validate the drill.

In the previous step, you launched new target instances in the DR Region. The target instances are replicas of the source servers based on the snapshot taken when you initiated the launch.

In this procedure, you connect to your Amazon EC2 target machines to confirm that they're running as expected.

  1. Open the Amazon EC2 console.

  2. Choose Instances (running).

  3. Select the target instance and note its private IPv4 address.

  4. Make sure that you can connect to the EC2 instance and that the JD Edwards EnterpriseOne and related components are replicated as expected.

Initiate a failover.

A failover is the redirection of traffic from a primary system to a secondary system. Elastic Disaster Recovery helps you perform a failover by launching recovery instances on AWS. After Elastic Disaster Recovery launches the recovery instances, you redirect the traffic from your primary systems to these instances.

  1. On the Elastic Disaster Recovery console, open the Source servers page and verify that the Ready for recovery column for the source server shows Ready, and the Data replication status column shows Healthy.

  2. Select the source server. From the Initiate recovery job menu, choose Initiate recovery.

  3. Select the point-in-time snapshot from which to launch the recovery instance, and then choose Initiate recovery.

    This starts a recovery job. You can monitor the status of the job on the Recovery instances page.

  4. Test and verify the recovery instance. If required, adjust the DNS configuration and connect your JD Edwards EnterpriseOne application to the database.

  5. Disconnect and decommission the source JD Edwards EnterpriseOne server, because the new recovery instance contains all changes.

  6. Register the recovery instance as the source server in the DR Region by following the process described in the Install the AWS Replication Agent epic. Confirm that the recovery instance has the IAM instance profile from the launch template attached. Don't use long-term access keys to install the agent.

For more information, see Performing a failover in the Elastic Disaster Recovery documentation.

AWS administrator

Initiate a failback.

The process for initiating a failback is similar to the process for initiating failover.

  1. Open the Elastic Disaster Recovery console in the primary Region. Navigate to the Recovery instances page, select the drill instance, and then choose Actions, Disconnect from AWS, Delete recovery instances.

  2. Open the Elastic Disaster Recovery console in the DR Region. Register your new JD Edwards EnterpriseOne server as the source server in the DR Region by installing the AWS Replication Agent. The data will be synced with a new replication server provisioned in the new staging subnet.

    Note

    When the new JD Edwards EnterpriseOne server is registered as a source server, you might see two source servers in the Elastic Disaster Recovery console: one server that was created from the primary EC2 instance, and the new server that was created from the recovery instance. We recommend that you tag the servers correctly to avoid confusion, and preferably add the new server to the launch template.

  3. To restart DR replication from the primary Region, disassociate the launched recovery instance from the Elastic Disaster Recovery console in the DR Region, and register the host as a source server in the primary Region.

For more information, see Performing a failback in the Elastic Disaster Recovery documentation.

AWS administrator

Start JD Edwards EnterpriseOne components.

  1. Start the JD Edwards EnterpriseOne database by logging in to the database server.

  2. When the database is running, start the JD Edwards EnterpriseOne logic and batch servers.

  3. Start WebLogic on the web servers, and start a JAS instance on the JAS servers.

  4. Start WebLogic on the provision server and on the server for the SM console.

  5. Start SM Agent on the servers.

  6. Confirm that the login to JD Edwards EnterpriseOne works correctly.

You will need to make incorporate the changes in Route 53 and Application Load Balancer for the JD Edwards EnterpriseOne link to work.

You can automate these steps by using Lambda, Step Functions, and Systems Manager (Run Command).

Note

Elastic Disaster Recovery performs block-level replication of the source EC2 instance EBS volumes that host the operating system and file systems. Shared file systems that were created by using Amazon EFS aren’t part of this replication. You can replicate shared file systems to the DR Region by using AWS DataSync, as noted in the first epic, and then mount these replicated file systems in the DR system.

JD Edwards EnterpriseOne CNC

Troubleshooting

IssueSolution

Source server data replication status is Stalled and replication lags. If you check details, the data replication status displays Agent not seen.

Check to confirm that the stalled source server is running.

Note

If the source server goes down, the replication server is automatically terminated.

For more information about lag issues, see Replication lag issues in the Elastic Disaster Recovery documentation.

Installation of AWS Replication Agent in source EC2 instance fails in RHEL 8.2 after scanning the disks. aws_replication_agent_installer.log reveals that kernel headers are missing.

Before you install the AWS Replication Agent on RHEL 8, CentOS 8, or Oracle Linux 8, run:

sudo yum install elfutils-libelf-devel

For more information, see Linux installation requirements in the Elastic Disaster Recovery documentation.

On the Elastic Disaster Recovery console, you see the source server as Ready with a lag and data replication status as Stalled.

Depending on how long the AWS Replication Agent has been unavailable, the status might indicate high lag, but the issue remains the same.

Use an operating system command to confirm that the AWS Replication Agent is running in the source EC2 instance, or confirm that the instance is running.

After you correct any issues, Elastic Disaster Recovery will restart scanning. Wait until all data has been synced and the replication status is Healthy before you start a DR drill.

Initial replication with high lag. On the Elastic Disaster Recovery console, you can see that the initial sync status is extremely slow for a source server.

Check for the replication lag issues documented in the Replication lag issues section of the Elastic Disaster Recovery documentation.

The replication server might be unable to handle the load because of intrinsic compute operations. In that case, try upgrading the instance type after consulting with the AWS Technical Support team.

Related resources