Proper way to upgrade DAS and cluster

Hi,

I’m playing with Data Grid and clusters - all is very nice but I’m looking forward before going to production I want to test DAS server version upgrade. What is a basic steps to do that?

  1. Backup existing server
  2. Run new server version and restore backup?
  3. How to deal with remote nodes and instances - recreate?

Thanks

Basically, there is a blog post at Backup & Restore of Payara Server which metions the following: -

asadmin backup-domain --backupDir /path/to/backup/directory myDomain

asadmin restore-domain --filename ${name} --backupdir /path/to/backup/directory myDomain

Moreover, there also are dedicated chapters about the backup, restore and upgrade, under the User Guides Overview :: Payara Community Documentation as the following:-

Furthermore as stating at the document as the following: -

Oracle GlassFish 3.1.x had a built-in automatic backup facility using the asadmin command create-backup-config . This allowed you to specify a schedule for when to backup, where to place the backed up file, and how many backups to keep.

This is no longer present in GlassFish Server 4.1.x or Payara Server, since it was a commercial feature that was never open-sourced, but its effects can be reproduced without much effort using the backup-domain command and some scheduling software ( crontab , for example)

Then to deal with the remote nodes and instances, we may create a customized script to call the backup periodically by using crontab or other applicable tools.

hm sorry my question was not exact - I don’t know a proper way how to upgrade remote Nodes.

I successfully upgraded DAS server from 5.2021.7 to 5.2021.8, but I I’m not sure how to upgrade Nodes that were created with previous version of DAS…
Of course I can create a new Node and point it to the same Node installation directory, then create new Instance for this remote Node and add it to DG. But maybe there is a more proper way?

After you have successfully upgraded the DAS. You will have to re-synchronise the creation and association of any instances you have in node directories to the DAS. In order to do this, you will have to manually start the instances in each of the nodes (be them local or remote nodes) configured within the domain. When starting these instances, set the --sync argument to full so that each instance is re-created successfully.

If DCOM or SSH is set up, start the instance centrally, with the --sync option of the start-instance asadmin command set to full:

asadmin start-instance --sync full ${instance-name}

If neither DCOM nor SSH is set up, start the instance locally from the host where the instance resides, with the --sync option of the start-local-instance asadmin command set to full:

asadmin start-local-instance --sync full ${instance-name}

You can avoid the manual effort and the creation of scripts required for upgrading the Payara Server with a Payara Enterprise subscription. It comes with the Payara Server Upgrade Tool, which makes the process of upgrading from one version of Payara Server Enterprise to the next faster and easier. You can watch a demo video of the Payara Server Upgrade Tool in action on the following link: Upgrade Tool Demo - YouTube.

1 Like

Hi, @merorai ,

I have a SSH setup and this command from the DAS (v5.2021.8) doesn’t upgrade the node:

asadmin start-instance --sync full ${instance-name}

that is I still see in instance JVM report.:

glassfish.version = Payara Server 5.2021.7 #badassfish (build 4569)

If I create a new node (Install Payara Server = true) and then a new instance, I have a new version - 5.2021.8. So my question still remains - how to upgrade Node, that was installed creating New Node from DAS?