Upgrading to a New Version¶
Table of Contents
It is important to understand the relationships between the different pieces of software and the correct procedures to take before deploying upgrades in your production environment.
|libfmp4||Library providing Unified's functionality|
mod_smooth_streaming is the name of the Unified Streaming webserver module, it uses a library (libfmp4) that is installed by mp4split, the packaging tool.
For this reason you should ensure that the installed versions always match.
You must for example not install a newer version of mod_smooth_streaming in an environment that has an older version of MP4split installed.
When deploying an upgrade it's possible that it requires a new license, or it may be the case that a renewal has dictated the need for a new license.
Due to the way the license is loaded by the Webserver it's important to ensure the new license is being loaded from the correct file. When you are adding a new license check that you are not including older license files in your config's include paths.
Confirmation that your license is being loaded correctly is always logged to the Webserver's main error log. If you use tail or a text editor to examine it when the server is reloaded you will see it print a status message in the log file that the license has been successfully loaded, if it has not been able to read it or there is an issue with the license itself this will also be logged. Once you have confirmed it is being loaded successfully and the license is indeed the correct one, you should try to access a manifest to further confirm that the license and origin are continuing to provide the required license options.
A full list of functionality that has been added in each release revision is kept here, you should be able to find the set of changes between your current release and the release you wish to upgrade to.
The release notes are made live when a new release is made public along with any additional documentation covering the changes or new features in the release.
On Linux the mp4split package contains libfmp4 which is used by both the webserver module and unified_capture. On Windows unified_capture is a standalone executable.
Once the parity of the software components is confirmed you should proceed to install the versions you intend to upgrade to in your staging environment.
Your staging environment should be as close to your production environment as possible. It is not advised to base a staging environment on a local machine and is preferred that it would be on a remote server which may connect to other production services and data, and the same assets and manifests that the production servers can access.
A typical workflow is as follows:
development --> staging --> production
So a development setup for initial testing followed by a staging setup that closely mimicks the production environment (see the next section).
It is important to ascertain what key functionality you are providing with the current production deployment. This could be many things, from DRM to TransDRM, EPG functionality, internally or on the playout side, specific configurations for certain devices.
Make sure you can copy or replicate all of this key functionality in your staging environment.
Carefully go through all the key functionality you are using the software to provide and check the release notes from the version you are currently running in production through to the version you are upgrading to. Has functionality that you provide changed, new features added? It might be that although the software is backwards compatible a DRM provider has changed their implementation and there is new documentation available.
The software is best installed using the package manager of the platform, so
dpkg) on Debian based distributions or
on RPM based distributions.
Before upgrading the software the webserver should be stopped.
In order to have the servers so caches updated it's recommended to run the following command:
#!/bin/bash sudo ldconfig
During the time the Webserver is offline the Live archive is not updated. This will cause discontinuities in the timeline. However, missing parts of the archive can be re-added by POSTing the missing part from another origin that kept ingesting while the first server was updated.
Alternatively, the archive could be cleared completely (by removing all files) and the origin could be marked online again (and for instance added to the loadbalancer pool) once the archive is full again.
With a new version online, cache entries created by older versions should be invalidated. A newer version might produce slichtly different fragments (for various reasons, for instance newi optimizations or other) so the cache keys will point to varying content created by previous and new version, this should be fixed by invalidating all cache entries created by the previous version.