Ottomata has submitted this change and it was merged.

Change subject: Increase hive-server2 heap size and update cdh submodule to 
allow this
......................................................................


Increase hive-server2 heap size and update cdh submodule to allow this

Bug: T76343
Change-Id: Idcb9dd179cef35b23a2e9a65e27322812729899c
---
M manifests/role/analytics/hive.pp
M modules/cdh
2 files changed, 14 insertions(+), 1 deletion(-)

Approvals:
  Ottomata: Verified; Looks good to me, approved



diff --git a/manifests/role/analytics/hive.pp b/manifests/role/analytics/hive.pp
index 5b60e72..f78712e 100644
--- a/manifests/role/analytics/hive.pp
+++ b/manifests/role/analytics/hive.pp
@@ -93,9 +93,22 @@
     # MySQL Hive Metastore database class is applied.
     Package['mysql-server'] -> Class['cdh::hive::metastore::mysql']
 
+    # TODO: Set these better once hive is on its own server.
+    # See: https://phabricator.wikimedia.org/T110090
+    # 
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_ig_hive_install.html#concept_alp_4kl_3q_unique_1
+    # TODO: Use hiera.
+    $server_heapsize = $::realm ? {
+        'production' => 1024,
+        default      => undef,
+    }
+    $metastore_heapsize = $::realm ? {
+        'production' => 256,
+        default      => undef,
+    }
     # Setup Hive server and Metastore
     class { 'cdh::hive::master':
-        heapsize => '512',
+        server_heapsize    => $server_heapsize,
+        metastore_heapsize => $metastore_heapsize,
     }
 
     ferm::service{ 'hive_server':
diff --git a/modules/cdh b/modules/cdh
index ca31b4d..5807eb3 160000
--- a/modules/cdh
+++ b/modules/cdh
-Subproject commit ca31b4dcb3d3587ddf2332c510a4f22b2694765f
+Subproject commit 5807eb3cac5c9fec4905666a00ee1cd5276806c5

-- 
To view, visit https://gerrit.wikimedia.org/r/250014
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Idcb9dd179cef35b23a2e9a65e27322812729899c
Gerrit-PatchSet: 3
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ottomata <[email protected]>
Gerrit-Reviewer: Ottomata <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to