Browse Source

Merge pull request #5640 from richardkchapman/ee2

HPCC-11154 Missing entries in default environment

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 11 years ago
parent
commit
ec55dfca91

+ 1 - 1
common/workunit/workunit.cpp

@@ -4380,9 +4380,9 @@ public:
         else if (roxie)
         {
             roxieProcess.set(roxie->queryProp("@name"));
-            clusterWidth = roxie->getPropInt("@numChannels", 1);
             platform = RoxieCluster;
             getRoxieProcessServers(roxie, roxieServers);
+            clusterWidth = roxieServers.length();
         }
         else 
         {

+ 0 - 2
deployment/deploy/RoxieDeploymentEngine.cpp

@@ -38,8 +38,6 @@ CRoxieDeploymentEngine::CRoxieDeploymentEngine(IEnvDeploymentEngine& envDepEngin
 
 void CRoxieDeploymentEngine::checkInstance(IPropertyTree& node) const
 {
-    if (!m_process.getPropInt("@numChannels", 0))
-        throw MakeStringException(0, "Number of channels must be set for process %s", m_name.get());
     CDeploymentEngine::checkInstance(node);
 }
 

+ 2 - 1
initfiles/etc/DIR_NAME/environment.xml.in

@@ -787,6 +787,7 @@
                 buildSet="roxie"
                 callbackRetries="3"
                 callbackTimeout="500"
+                channelsPerNode="1"
                 checkCompleted="true"
                 checkFileDate="true"
                 clusterWidth="1"
@@ -853,7 +854,6 @@
                 name="myroxie"
                 nodeCacheMem="100"
                 nodeCachePreload="false"
-                numChannels="1"
                 numDataCopies="1"
                 parallelAggregate="0"
                 perChannelFlowLimit="10"
@@ -989,6 +989,7 @@
                pluginsPath="${PLUGINS_PATH}"
                replicateAsync="false"
                replicateOutputs="false"
+               slavesPerNode="1"
                watchdogEnabled="true"
                watchdogProgressEnabled="true">
    <Debug/>