Module Import alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults kwarg body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Call NameLoad Dict Assign NameStore Call NameLoad keyword Call NameLoad Dict Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Dict ListLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Num Str Num Str Num Str Num Num Num Num Str NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Str keyword Call NameLoad Dict Assign NameStore Call NameLoad keyword Call NameLoad Dict Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Dict Str Str Dict Dict ListLoad NameLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str Str Num Num Str Str Num Num Num Num Str Num NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Dict NameLoad NameLoad NameLoad Assign NameStore Dict Str Str Dict Str Str Dict Str Str Assign NameStore Dict Str Str Dict Str Str Dict Str Str Assign NameStore Dict Str Str Str Dict Str Str Dict Str Str Dict Str Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Str decorator_list decorator_list Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign NameStore Dict Str Str Dict Str TupleLoad Str Str Dict Str TupleLoad Str Str Assign NameStore ListLoad Call NameLoad keyword Str keyword Str keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword ListLoad Str keyword Str keyword Call NameLoad Dict Str Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Dict Str Dict Str Str keyword ListLoad NameLoad keyword NameLoad keyword Call NameLoad Dict Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Str Dict Str Str Dict Str Num Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str Dict Str Str Str Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad keyword Num keyword Num Assign NameStore Dict Str Str Dict Str TupleLoad Str Str Dict Str TupleLoad Str Str Assign NameStore ListLoad Call NameLoad keyword Str keyword Str keyword Num Assign NameStore Call NameLoad keyword NameLoad keyword Num keyword ListLoad Str keyword Str keyword Call NameLoad Dict Str Dict Str Str Assign NameStore Call NameLoad keyword Call NameLoad Dict Str Dict Str Num keyword ListLoad NameLoad keyword NameLoad keyword Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Dict Str Dict Str NameLoad AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str Str Str Str Str Str ListLoad Dict Str Str Num AttributeLoad NameLoad attr Dict Str Str Num AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Dict Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad keyword Call NameLoad Dict Assign NameStore Call AttributeLoad NameLoad attr Dict ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock N/A six sahara conductor cond sahara context sahara.plugins recommendations_utils ru sahara.tests.unit base b N/A conductor N/A cond API Configs N/A object N/A __init__ N/A N/A self configs N/A N/A N/A N/A self configs configs N/A to_dict N/A N/A self N/A N/A N/A N/A self configs N/A N/A FakeObject N/A object N/A __init__ N/A N/A self N/A kwargs N/A N/A attr N/A N/A six iterkeys kwargs N/A N/A N/A setattr self attr N/A N/A kwargs get attr N/A N/A TestProvidingRecommendations N/A N/A b SaharaWithDbTestCase N/A test_get_recommended_node_configs_medium_flavor N/A N/A self fake_flavor N/A N/A N/A ng N/A FakeObject flavor_id fake_flavor node_configs N/A Configs N/A N/A cl N/A FakeObject cluster_configs N/A Configs N/A N/A N/A fake_flavor return_value N/A FakeObject ram 4096 vcpus 2 N/A observed N/A N/A N/A N/A ru HadoopAutoConfigsProvider N/A N/A cl False _get_recommended_node_configs ng N/A N/A N/A self assertEqual N/A mapreduce.reduce.memory.mb mapreduce.map.java.opts mapreduce.map.memory.mb mapreduce.reduce.java.opts yarn.app.mapreduce.am.resource.mb yarn.app.mapreduce.am.command-opts mapreduce.task.io.sort.mb yarn.nodemanager.resource.memory-mb yarn.scheduler.minimum-allocation-mb yarn.scheduler.maximum-allocation-mb yarn.nodemanager.vmem-check-enabled 768 -Xmx307m 384 -Xmx614m 384 -Xmx307m 153 3072 384 3072 false observed N/A N/A N/A mock patch sahara.utils.openstack.nova.get_flavor test_get_recommended_node_configs_small_flavor N/A N/A self fake_flavor N/A N/A N/A ng N/A FakeObject flavor_id fake_flavor node_configs N/A Configs N/A N/A cl N/A FakeObject cluster_configs N/A Configs N/A N/A N/A fake_flavor return_value N/A FakeObject ram 2048 vcpus 1 N/A observed N/A N/A N/A N/A ru HadoopAutoConfigsProvider N/A node_configs cluster_configs N/A N/A N/A cl False _get_recommended_node_configs ng N/A N/A N/A self assertEqual N/A mapreduce.reduce.java.opts yarn.app.mapreduce.am.resource.mb mapreduce.reduce.memory.mb mapreduce.map.java.opts yarn.app.mapreduce.am.command-opts mapreduce.task.io.sort.mb mapreduce.map.memory.mb yarn.nodemanager.resource.memory-mb yarn.scheduler.minimum-allocation-mb yarn.nodemanager.vmem-check-enabled yarn.scheduler.maximum-allocation-mb -Xmx409m 256 512 -Xmx204m -Xmx204m 102 256 2048 256 false 2048 observed N/A N/A N/A mock patch sahara.utils.openstack.nova.get_flavor test_merge_configs N/A N/A self N/A N/A N/A provider N/A N/A ru HadoopAutoConfigsProvider N/A None None False N/A initial_configs N/A cat bond N/A talk meow N/A name james N/A extra_configs N/A dog bond N/A talk woof N/A extra_name james bond N/A expected N/A cat dog bond N/A talk meow N/A talk woof N/A name extra_name james james bond N/A N/A N/A self assertEqual expected N/A N/A provider _merge_configs initial_configs extra_configs N/A test_apply_recommended_configs N/A N/A self cond_cluster cond_node_group fake_flavor N/A N/A TestProvider N/A N/A ru HadoopAutoConfigsProvider N/A get_datanode_name N/A N/A self N/A N/A N/A dog_datanode N/A N/A N/A N/A fake_flavor return_value N/A FakeObject ram 2048 vcpus 1 N/A to_tune N/A cluster_configs node_configs N/A dfs.replication N/A dfs replica N/A mapreduce.task.io.sort.mb N/A bond extra_name N/A fake_plugin_configs N/A N/A FakeObject applicable_target dfs name replica default_value 3 N/A fake_ng N/A FakeObject use_autoconfig True count 2 node_processes N/A dog_datanode flavor_id fake_id node_configs N/A Configs N/A bond N/A name james N/A fake_cluster N/A FakeObject cluster_configs N/A Configs N/A cat N/A talk meow node_groups N/A fake_ng use_autoconfig True extra N/A Configs N/A N/A v N/A TestProvider to_tune fake_plugin_configs fake_cluster False N/A N/A N/A v apply_recommended_configs N/A N/A N/A self assertEqual N/A N/A N/A mock call N/A N/A context ctx fake_cluster N/A cluster_configs N/A cat dfs N/A talk meow N/A replica 2 N/A N/A mock call N/A N/A context ctx fake_cluster N/A extra N/A auto-configured True N/A cond_cluster call_args_list N/A N/A N/A self assertEqual N/A N/A N/A mock call N/A N/A context ctx fake_ng N/A node_configs N/A bond N/A name extra_name james 102 N/A cond_node_group call_args_list N/A N/A N/A mock patch sahara.utils.openstack.nova.get_flavor N/A N/A mock patch sahara.plugins.recommendations_utils.conductor.node_group_update N/A N/A mock patch sahara.plugins.recommendations_utils.conductor.cluster_update test_apply_recommended_configs_no_updates N/A N/A self cond_cluster cond_node_group fake_flavor N/A N/A N/A N/A fake_flavor return_value N/A FakeObject ram 2048 vcpus 1 N/A to_tune N/A cluster_configs node_configs N/A dfs.replication N/A dfs replica N/A mapreduce.task.io.sort.mb N/A bond extra_name N/A fake_plugin_configs N/A N/A FakeObject applicable_target dfs name replica default_value 3 N/A fake_ng N/A FakeObject use_autoconfig True count 2 node_processes N/A dog_datanode flavor_id fake_id node_configs N/A Configs N/A bond N/A extra_name james bond N/A fake_cluster N/A FakeObject cluster_configs N/A Configs N/A dfs N/A replica 1 node_groups N/A fake_ng use_autoconfig True extra N/A Configs N/A N/A v N/A N/A ru HadoopAutoConfigsProvider to_tune fake_plugin_configs fake_cluster False N/A N/A N/A v apply_recommended_configs N/A N/A N/A self assertEqual 0 N/A cond_node_group call_count N/A N/A N/A self assertEqual N/A N/A N/A mock call N/A N/A context ctx fake_cluster N/A extra N/A auto-configured True N/A cond_cluster call_args_list N/A N/A N/A mock patch sahara.utils.openstack.nova.get_flavor N/A N/A mock patch sahara.plugins.recommendations_utils.conductor.node_group_update N/A N/A mock patch sahara.plugins.recommendations_utils.conductor.cluster_update test_correct_use_autoconfig_value N/A N/A self N/A N/A N/A ctx N/A N/A context ctx N/A ngt1 N/A N/A conductor node_group_template_create ctx N/A name flavor_id plugin_name hadoop_version ngt1 1 vanilla 1 N/A ngt2 N/A N/A conductor node_group_template_create ctx N/A name flavor_id plugin_name hadoop_version use_autoconfig ngt2 2 vanilla 1 False N/A N/A N/A self assertTrue N/A ngt1 use_autoconfig N/A N/A N/A self assertFalse N/A ngt2 use_autoconfig N/A clt N/A N/A conductor cluster_template_create ctx N/A name plugin_name hadoop_version node_groups use_autoconfig clt1 vanilla 1 N/A N/A count node_group_template_id 3 N/A ngt1 id N/A count node_group_template_id 1 N/A ngt2 id False N/A cluster N/A N/A conductor cluster_create ctx N/A name cluster_template_id stupid N/A clt id N/A N/A N/A self assertFalse N/A cluster use_autoconfig N/A ng N/A cluster node_groups N/A N/A N/A N/A ng name ngt1 N/A N/A N/A N/A self assertTrue N/A ng use_autoconfig N/A N/A N/A N/A self assertFalse N/A ng use_autoconfig N/A test_not_autonconfigured N/A N/A self cluster_update N/A N/A N/A fake_cluster N/A FakeObject extra N/A Configs N/A N/A v N/A N/A ru HadoopAutoConfigsProvider N/A N/A fake_cluster True N/A N/A N/A v apply_recommended_configs N/A N/A N/A self assertEqual 0 N/A cluster_update call_count N/A N/A N/A mock patch sahara.plugins.recommendations_utils.conductor.cluster_update N/A