Caringo: EC encoding

From Define Wiki
Revision as of 16:33, 30 January 2017 by Matth (talk | contribs) (Created page with "Error seen when trying to initgateway script: [root@localhost bin]# ./initgateway Configuring logging from /etc/caringo/cloudgateway/logging.cfg Searching for admin context /...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Error seen when trying to initgateway script:

[root@localhost bin]# ./initgateway Configuring logging from /etc/caringo/cloudgateway/logging.cfg Searching for admin context //caringo-boston/... Admin context //caringo-boston/ not found, created Searching for admin context //caringo-boston/_admin... Admin context //caringo-boston/_admin not found, created

Unable to init multipart search mappings: <html><body>

CAStor Error


Parallel writes must specify a valid EC encoding in the cluster, or on the request.</body></html> Exception in thread "main" org.apache.commons.configuration.ConfigurationException: Unable to init multipart search mappings: <html><body>

CAStor Error


Parallel writes must specify a valid EC encoding in the cluster, or on the request.</body></html>

       at com.caringo.gateway.Main.establishMultipartMappings(Main.java:354)
       at com.caringo.gateway.Main.main(Main.java:330)

Solution:

That error is expected thankfully , and should be an easy fix. We use parallel write for s3 multipart uploads to the cluster which is a big performance improvement. This requires a base ec level to be set for the cluster, sort of a min value that we can increase later.

First download and extract this tarball onto the csn. https://support.cloud.caringo.com/tools/caringo-support-tools.tgz

in the directory dist that it creates you’ll find a script called snmp-castor-tool.sh

You can set an ec encoding level for the cluster using the commands below. Setting the ec encoding

./snmp-castor-tool.sh -C policyECEncoding -V "2:1 anchored"

Checking the ec encoding.

./snmp-castor-tool.sh -o policyECEncoding