Before Starting the Installation

This section contains information to take into account before starting the installation.

Before installing the software, you need to create and configure service endpoints, certificates, reverse proxies, and load balancers etc.

This page discusses:

Machines and Deployment

Machines

You can use physical or virtual machines except for licensing. Licensing uses the DS License Server (DSLS) which needs physical machines unless you use the following specific implementations:

  • Managed Licensing Service: For Licensing, you can also adopt the Managed Licensing Service that is a highly available license server managed by Dassault Systèmes. Dassault Systèmes performs all mandatory license server administration tasks (for example, license key enrollment), but certain operations are still authorized using the locally installed license administration tool.
  • You can run Managed Licensing Service administration tasks using the licensing service administration web user interface.
  • Setting up a Virtualized DS License Server Failover Cluster Using Hyper-V on Windows Server 2016: The Hyper-V role in Windows server lets you create a virtualized computing environment where you can create and manage virtual machines. You can use it to create and run a virtualized DS License Server.

On Linux, make sure /usr/tmp folder exists in write access before launching the 3DSpace installer.

Internet Access

Internet access is mandatory in the following cases:

  • on all machines if the Managed Licensing Service is used, since the service is stored on the Dassault Systèmes site.
  • on all 3DDashboard machines to enable certain apps (such as Feed Reader, Run your app) to access external data.

Shared Directory

Almost all services need a shared directory to store data:

  • always keep the data directories in a common path managed by mount (generally used Linux), NAS (Network Attached Storage), or shared directory (in Windows) having read/write/execute access.
  • this method is particularly useful when there are large amounts of data to save, and also facilitates management of a load-balanced environment.

Configuration Information Shared between Services

Configuration information is also shared between services.

Recommendation: Configure a shared configuration directory in a common path managed by mount (generally used Linux), NAS (Network Attached Storage) or shared directory (in Windows) having read/write/execute access for all services including reverse proxies and load balancers.

It should contain the following elements:

  • certificates (.cer (or .crt))
  • cypher key for 3DPassport
  • TNSNames.ora directory.

Firewall Settings

Allow the TCP (HTTPS) protocol from all machines to the DS License Server typically on port 4085, or another port number if the DS License Server is configured to listen to a non-default port number.

Recommendation: Update firewall settings to accommodate non-default ports, if chosen for all services.

Reverse Proxy and Load Balancers

The connection to all 3DEXPERIENCE platform services occurs through https protocol for security reasons. To have contact between the application and its clients, make sure a set comprising reverse proxy (for ending https calls) and a load balancer (for high availability) is cascaded between the client and the application server for the service. The same component can enable these two features.

  • Reverse proxy:
    • Secures the communication between the client (or other servers) and the application
    • Specifies some headers to allow CORS capabilities between elements of the platform

    Configurations for apache2.4 are built during the service installation process and can be found at:

    <install_dir>/<os>/templates/<service_name>_http_fragment.conf[.txt]

    They can be translated into configurations for other reverse proxy technologies.

  • All load balancers are configured to preserve the sessions using cookies and a parameter value (see examples given for some load balancers). For more information, see the installation documentation for each service.

There are different possibilities:

  • You can install all the different services either on different machines, or on the same machine
  • You can have a different reverse proxy for each service, but all the different services may also use the same reverse proxy
  • all the different services may use different HTTPS ports, or the same port.
    Note: Typical examples are the case of a DMZ setup, or security limitations on open ports.

The case where the services are set up using the same virtual host, on the same / uri (without a different path for each service) is impossible in a single httpd.conf configuration file with only one domain.

Note: The fragments for each service are isolated in a location container, allowing them to be used on the same Apache HTTPD server on the same port.

Add all templates into one HTTPD configuration file within a single correctly configured ssl Virtualhost. For more information, see the section "Configuring the reverse proxy" in each service installation guide.

Service Endpoints

Before you start the installation, each service can have previously configured dedicated URL endpoints. These are examples of service endpoints, comprising a service name and a domain name:

3dlicencing.mydomain.com
3dpassport.mydomain.com
3ddashboard.mydomain.com
untrusted.3ddashboard.mydomain.com
3dsearch.mydomain.com
3dspace.mydomain.com
3dspace.mydomain.com/{webapp_name}
fcs.3dspace.mydomain.com
3dswym.mydomain.com

Notes:
  • You can use a single port on a dedicated machine with one root URL for all the services and distinguish the different services by their root URI.
  • Also, if you want the Service endpoints to be the same (single FQDN), you must change the name of the cookies as mentioned for each service in the Operations section.
  • You must use valid top level domains in FQDN. To know about the RFC and valid TLDs, see https://data.iana.org/TLD/tlds-alpha-by-domain.txt.
.

Prerequisites Verification

Databases

For each service connecting with encryption to SQL Server, refer to Microsoft documentation.

For more information, see the Preparing the installation section of each service.

Application Servers

Important: Each service requires a dedicated, separate application server. The services cannot share the same application server. Update the setenv.bat/.sh file with the JAVA_HOME variable for each application server.

Batch Authentication

Certain internal services do not support 3DPassport CAS authentication. Therefore, you must configure them with a NO-CAS authentication on a dedicated TomEE application server on the 3DSpace side, set with a dedicated mxEnv.sh configuration file (for more details, see the dedicated section in the 3DSpace administration documentation).

HTTPS and Certificates

To be accepted by the 3DEXPERIENCE platform servers, the certificate CN must be equal to the full server URL (that is 3dpassport.mydomain.com) or to a domain with a wildcard (that is *.mydomain.com). The certificate expiry date must be set for later.

The certificate comprises two parts:

  • the (public) certificate itself, required to be understood by all clients and servers of the platform
  • and the (private) key, which is required only for the reverse proxy.

You can obtain certificates from any certificate creation public authority or your own authority that generates and signs them. Do not use self-signed certificates. Firefox (since version 55) and Chrome-based browsers (since version 80), block them.

You can generate certificate requests and transmit them to your administrator or provider. For more information, see Set Up Certificates of each service installation guide.

If you are deploying 3DSpace on an application server which relies on its native java, you must import certificates on the native java as well.

Note: Only certificate files using the extension .cer are supported.

Services Installation Requirements

User IDs

Throughout the installation, create users whenever you are prompted to:

  • Create userids in lowercase

    This does not apply to other user information in user profiles such as first and last names, addresses, etc.

  • Do not include spaces
  • Users should be created in both 3DPassport and then 3DSpace, with the same userid that should never be changed, and then synchronized with the rest of the platform.

Make sure that all services be up and running when a new user is created.

There are two methods for creating users:

  • without LDAP: a user can create an account directly using the 3DPassport service. There is no security risk as the user has, at that moment, no access to any service or application (beyond managing the account information).
  • with an Enterprise Information System such as LDAP.

admin_platform must be the administrator of the 3DSpace server. The admin_platform user is created when installing 3DSpace, and also has administration rights.

If you are migrating from V6R2014x or earlier, users should be created with user IDs with the same case as 3DSpace user IDs.

Installation and Setup | 3DEXPERIENCE Platform | 3DEXPERIENCE Platform Installation | Installing Services One-by-One | 3DSpace | 3DSpace | 3DSpace | Operations | Post-Installation explains how to import these users in batch mode.

Clock Synchronization

Ensure that all clocks on all servers are synchronized using technology such as NTP synchronization.

Mail Server Configuration

Certain service instances require a local mail server to send mail to users. Therefore, you must configure each mail server.

A mail sender name is required for each service for the following reasons:

  • 3DPassport: password recovery (not available for user passwords if connected to enterprise SSO/LDAP), notifications on security (if activated)
  • 3DDashboard: sharing of dashboards (invitation/copy), tabs (copy) and widgets (copy)
  • 3DSpace: sends invitations to members to join the platform (and creates users if not performed by the administrator in batch mode)
  • 3DSwym: social notifications.

Services Communicating with DSLS Server

Service Communication to DSLS Server Roles
3DPassport No NA
3DSpace (MCS) Yes
  • 3DSwymer (IFW) is the minimal license required to use the 3DEXPERIENCE platform.
  • The 3DSpace apps are available within the Collaborative Industry Innovator (CSV) role, CSV is the prerequisite for all the Governance & Engineering related roles.
  • The administrator created by the installation (admin_platform) is automatically granted an IFW and a CSV license.
3DSpace File Collaboration Server (FCS) No NA
3DSpace Index (File Converter) No NA
3DSearch (Federated Search) No NA
3DSpace Index No CV (Exalead CloudView) licensing is managed with a file delivered with the installer. No DSLS-specific license is required in that case.
3DSpace Derived Objects No NA
3DDashboard Yes IFW is required on DSLS server.
3DComment Yes IFW is required on DSLS server.
3DSwym Foundation Yes IFW is required on DSLS server.
3DSwym Video Converter No NA
3DSwym Index + Exalead CloudView Yes

IFW is required on DSLS server for 3DSwym Index .

CV (Exalead CloudView) licensing is managed with a file delivered with the installer. No DSLS-specific license is required in that case.
3DNotification Yes IFW is required on DSLS server.

Load Balancer Configuration

Load Balancing Recommendations

Recommendation: Load balancing multiple instances of each 3DEXPERIENCE platform service is recommended for production environments, for availability, scalability, and performance.

All services supporting access through load balancing must comply with the following constraints:

  • Session affinity is performed through cookie injection (a cookie is specified for each client, identifying the affected node and reading this cookie value will enable traffic to be directed to the same node), and per URL.
  • For calls that do not have cookies:
    • For option call: do not set any cookie (just specify CORS headers and return 200, see reverse proxy configuration for content)
    • For all other calls: Set the cookie with the Node ID, and specify the x-dsp-client-node header with the same node ID
  • Health-checking through HTTP calls.

Standard first request:

OPTION request:

Standard other request (not OPTION, not first):

In compliance with these constraints, here is an example of a load balancing configuration using haproxy (behind an independent reverse proxy).

Note: HAProxy support is limited to Linux Operating Systems.
global
  log 127.0.0.1 syslog notice
  option httplog        
  maxconn 4000

defaults
  log global
  option tcplog
  option forwardfor 
  timeout connect 5000
  timeout client 50000
  timeout server 50000
  option http-server-close

frontend http-in  
  bind *:{inbound port}  
  mode http  
  capture cookie SERVERID len 100
  default_backend Service_All

backend Service_All  
  balance roundrobin  
  mode http  
  cookie SERVERID insert indirect nocache secure httponly 
 #for all services except 3DSpace :  
  option httpchk OPTIONS /{Service uri}//healthcheck/ HTTP/1.0 
 #for 3DSpace : 
 # option httpchk OPTIONS /enovia/ HTTP/1.0  
  http-send-name-header x-dsp-client-node         
 # List of servers  
  server Front_0 {server0 IP}:{tomee port} cookie Front_0 check  
  server Front_1 {server1 IP}:{tomee port} cookie Front_1 check

For the configuration of HAProxy specific to 3DDashboard, add the following line:

option httpchk OPTIONS /<3DDashboardUri>/ HTTP/1.0\r\nHOST:\ <3DDashboardHostname>

If you add a URL for 3DDashboard like this: https://domain.com/custom3dd in the URL dialog box, the values are:

<3DDashboardUri>: custom3dd
<3DDashboardHostname>: domain.com

If you add a URL for 3DDashboard like this: https://domain.com in the URL dialog box, the values are:

<3DDashboardUri>: 3ddashboard
<3DDashboardHostname>: domain.com

Another example: For hardware load balancer BigIP from F5, an iRule can be designed to specify the x-dsp-client-node header, beside a cookie-based configuration. An example of the part of this iRule specifying the header could be:

when LB_SELECTED {
     #following 3 lines could determine persistence cookie name being
       used if not manually set in the RULE_INIT section
     #if {not [info exists cookie_name]} { 
     #    if { [set cookie_name [PROFILE::persist mode cookie
      cookie_name]] eq "" } { set $cookie_name
     "no_cookie_persist_but_nevermind" } 
     #}
     #Next function is here to forge the persistence cookie value when
      it doesn't exist yet (because it's the first hit)
             if { [set COOKIE [HTTP::cookie value $cookie_name]] == "" } {
                 scan [LB::server addr] {%d.%d.%d.%d} a b c d 
                 #Forging the cookie value based on sol6917  
                 set ADDR [expr { $a + $b * 256 + $c * 65536 + $d * 16777216 }]
                 set PORT [ntohs [LB::server port]] 
                 set COOKIE "${ADDR}.${PORT}.0000"
                 #log local0. "$cookie_name = $COOKIE created for [HTTP::uri]"
                 unset a b c d ADDR PORT 
             } 
             HTTP::header insert "x-dsp-client-node" $COOKIE
} 
Note:

x-dsp-client-node is the default header name and is hardcoded in the code of the filters. If you want to change the name of this header, you need to proceed as explained in each section Operation of 3DDashboard, 3DSpace, 3DSearch, 3DSwym, 3DComment.

Desktop Apps (CATIA) use headers. Here is the list of headers to be kept on the RP / LB chain. During operations like CATIA open, xmql queries are sent to the server with:

with Accept-Encoding: SIDL, gzip, deflate
with Content-Encoding: application/octet-stream

Certain load balancers are configured to modify these headers leading to errors.

The diagram below explains session affinity in more detail.

X-Forwarded-proto transfers data about the protocol used upstream from the load balancer, HTTPS in this case. This rebuilds dynamically the URL of the service called, to be later provided to 3DPassport when redirecting to the login page or validation ticket.

The X-Forwarded-proto header does not need to be defined on the 3DPassport side, only on the services side. Setting it now does not cause any problems, above all if the same rule is used for all and the load balancer is shared by all the services, including 3DPassport.



Load request filter load balancing

Follow this procedure to enable session affinity required for callbacks sent by 3DPassport to the other services of the 3DEXPERIENCE platform.

  1. Configure Apache HTTPD.

    For example, for 3DSpace:

    ProxyHCExpr is_ok {hc('body') =~ /ok/}
    ProxyHCExpr hcx200 {%{REQUEST_STATUS} =~ /^[2]/}
    ProxyHCTemplate hctSpace hcmethod=GET hcinterval=5 hcpasses=1 hcfails=1 hcuri=servlet/fcs/ping hcexpr=hcx200
    
    <Proxy "balancer://spaceCluster">
            BalancerMember "http://rdy2space.dsone.3ds.com:9080/3dspace" route=space1 timeout=5 connectionTimeout=3 hctemplate=hctSpace
            BalancerMember "http://rdy2space.dsone.3ds.com:9180/3dspace" route=space2 timeout=5 connectionTimeout=3 hctemplate=hctSpace
            BalancerMember "http://rdy2space.dsone.3ds.com:9280/3dspace" route=space3 timeout=5 connectionTimeout=3 hctemplate=hctSpace
            ProxySet stickysession=SERVERID
    </Proxy>
    <Location "/3dspace">
            RequestHeader set X-Forwarded-Proto "https"
            RequestHeader set X-Forwarded-Port "443"
            RequestHeader set x-forwarded-contextpath /3dspace
            Header add Set-Cookie "SERVERID=SPACE.%{BALANCER_WORKER_ROUTE}e; path=/3dspace" env=BALANCER_ROUTE_CHANGED
            ProxyPass "balancer://spaceCluster" nofailover=on
            ProxyPassReverse "balancer://spaceCluster"
    </Location>        
    

    For example, for Federated Search BalancerMember:

    BalancerMember http://rdy2search.dsone.3ds.com:8080/federated route=fed1 timeout=5 connectionTimeout=3 hcmethod=OPTIONS hcuri=manager?query=monitoring hcexpr=hcx200 hcinterval=5

  2. Enable NodeRequestFilter:

    Modify the WEB-INF/web.xml of 3DSpace/FedSearch/… to declare the new filter.

    <filter>
    	<filter-name>NodeRequestFilter</filter-name>
    	<filter-class>com.dassault_systemes.apache.util.NodeRequestFilter</filter-class>
    	<!-- <init-param>
    		<param-name>jvmRoute</param-name>
    		<param-value>fed1</param-value>
    	</init-param>
    	<init-param>
    		<param-name>cookieName</param-name>
    		<param-value>SERVERID</param-value>
    	</init-param> 
    	<init-param>
    		<param-name>stickySessionSep</param-name>
    		<param-value>.</param-value>
    	</init-param> -->
    </filter>
    <filter-mapping>
    	<filter-name>NodeRequestFilter</filter-name>
    	<url-pattern>/*</url-pattern> 
    </filter-mapping>
    

    Note: NodeRequestFilter must be added before existing CAS filters (authentication, validation, etc.)
  3. Specify NodeRequestFilter parameters.
    Note: The only required parameter is jvmRoute. Failure to provide jvmRoute prevents service start-up (throws servlet exception).

    All parameter values can be supplied by either:

    • Filter init-param
    • Environment variables
    • –D or conf/catalina.properties
    • conf/server.xml - Engine jvmRoute attribute.
    jvmRoute="${jvmRoute}" will use either –D or property with same name.

    Default parameter values:

    • cookieName = SERVERID
    • stickySessionSep =
    Note: cookieName and stickySessionSep values can be changed by any method except for server.xml change.

    Preference for which parameter values are used by Filter (as currently written):

    • server.xml Engine jvmRoute attribute takes precedence
    • –D or properties file
    • Environment variables
    • Filter parameters.
    jvmRoute value must match the Apache BalancerMember route= VALUE for the specific 3DEXPERIENCE service.

  4. Enforce testing failures in the load balanced environment (negative testing):
    • Set all nodes to the same jvmRoute (for example, jvmRoute=(null)). Using (null) is equivalent to existing Apache recommended directives for specifying x-dsp-client-node value on initial service requests.

      or

    • Set one of the 3dspace nodes as jvmRoute=FAIL
  5. Log in using logback.xml:
    <appender name="NodeFilter" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
          <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
        </encoder>
      </appender>
    
       <logger name="com.dassault_systemes.apache.util" level="DEBUG">
            <appender-ref ref="NodeFilter" />
        </logger>
    

Service Healthcheck

You can check services status by opening the following URLs in your browser.

  • 3DPassport: https://<hostname>:<port>/<URI>/healthcheck
  • 3DDashboard: https://<hostname>:<port>/<URI>/test-alive
  • MePreferences: https://<hostname>:<port>/<URI>/api/v1/healthCheck
  • 3DSearch: https://<hostname>:<port>/federated/manager?query=monitoring
  • 3DSpace: https://<hostname>:<port>/<URI>/servlet/fcs/ping
  • 3DCompass: https://<hostname>:<port>/<URI>/servlet/fcs/ping
  • Tags: https://<hostname>:<port>/<URI>/servlet/fcs/ping
  • 3DComment: https://<hostname>:<port>/<URI>/monitoring/healthcheck
  • 3DNotification: https://<hostname>:<port>/<URI>/healthcheck
  • 3DSwym: https://<hostname>:<port>/<URI>/monitoring/healthcheck
  • File Collaboration Server: https://<hostname>:<port>/<URI>/servlet/fcs/about