[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Manual scaling always defaults to max 1 gear



Your failures are caused by declaring scaling + web_framework, but not exposing everything a web_framework does.  If you're trying to expose erlang as a service for use by other apps, it's better to take that tag off, and then it should just work.  Otherwise, you'll need to expose the correct connection hooks for a web framework (publish-http-endpoint-url).  It's also possible adding the service tag is limiting you somehow.  You should be either a service, or a web framework, but not both.

Allowing folks to create apps without a web_framework is something on our radar, it's mostly that we're focused on other core features right now.

----- Original Message -----
> because openshift requires each application to have a web_framework
> component. Without it, it will not work at all if I remember correctly.
> Ideally I wouldn't want the web component.
> Op 25 jul. 2013 13:37 schreef "Clayton Coleman" <ccoleman redhat com> het
> volgende:
> 
> > Why is this a web cart?  Are you trying to take http traffic?
> >
> > On Jul 25, 2013, at 2:45 AM, Thijs Terlouw <thijsterlouw gmail com> wrote:
> >
> > Yes, the manifest [1] contains:
> >
> > ============
> >
> > Scaling:
> >   Min: 1
> >   Max: 100
> >
> > ============
> >
> > I tried Max: -1 as well, but nothing works.
> >
> > [1]
> > https://raw.github.com/thijsterlouw/openshift-erlang/master/metadata/manifest.yml(also
> > in the original question)
> >
> >
> > On Thu, Jul 25, 2013 at 12:25 AM, Clayton Coleman
> > <ccoleman redhat com>wrote:
> >
> >> If this is a custom cartridge, did you declare your min and max scale in
> >> your manifest?
> >>
> >>
> >> https://github.com/smarterclayton/openshift-redis-cart/blob/master/metadata/manifest.yml#L15
> >>
> >> ----- Original Message -----
> >> > I'm trying to change an auto-scaled application to a manually scaled
> >> > application using this documentation:
> >> >
> >> https://www.openshift.com/blogs/manual-scaling-on-openshift-using-marker-files
> >> >
> >> >
> >> > ======================
> >> > rhc cartridge scale erlang-15 -a eda -l thijst --server MYBROKER -k
> >> --min 1
> >> > --max 10
> >> > Using spilgames-erlang-15 (Erlang R15B) for 'erlang-15'
> >> > This operation will run until the application is at the minimum scale
> >> and may
> >> > take several minutes.
> >> > Setting scale range for spilgames-erlang-15 ... done
> >> >
> >> > spilgames-erlang-15 (Erlang R15B)
> >> > ---------------------------------
> >> > From:
> >> >
> >> https://raw.github.com/thijsterlouw/openshift-erlang/master/metadata/manifest.yml
> >> > Scaling: x1 (minimum: 1, maximum: 1) on small gears
> >> > ======================
> >> >
> >> >
> >> > Problem: I am getting maximum scale 1 instead of 10.
> >> >
> >> > From the logs:
> >> >
> >> > ======================
> >> > MOPED: 127.0.0.1:27017 UPDATE database=openshift_broker_dev
> >> > collection=applications selector={"_id"=>"51efec6b6db593a18700014b"}
> >> >
> >> update={"$push"=>{"pending_op_groups"=>{"_id"=>"51efef3d6db593a18700016e",
> >> > "num_gears_added"=>0, "num_gears_removed"=>0, "num_gears_created"=>0,
> >> > "num_gears_destroyed"=>0, "num_gears_rolled_back"=>0, "user_agent"=>nil,
> >> > "op_type"=>:update_component_limits,
> >> > "args"=>{"comp_spec"=>{"cart"=>"spilgames-erlang-15",
> >> > "comp"=>"spilgames-erlang-15"}, "min"=>1, "max"=>10,
> >> > "additional_filesystem_gb"=>nil}, "created_at"=>2013-07-24 15:14:05 UTC,
> >> > "parent_op_id"=>nil, "updated_at"=>2013-07-24 15:14:05 UTC}}} flags=[]
> >> > COMMAND database=openshift_broker_dev command={:getlasterror=>1,
> >> :safe=>true}
> >> > (0.5107ms)
> >> > MOPED: 127.0.0.1:27017 QUERY database=openshift_broker_dev
> >> > collection=applications selector={:_id=>"51efec6b6db593a18700014b"}
> >> flags=[]
> >> > limit=-1 skip=0 batch_size=nil fields=nil (0.5367ms)
> >> > MOPED: 127.0.0.1:27017 QUERY database=openshift_broker_dev
> >> collection=domains
> >> > selector={"$query"=>{"_id"=>"51e92f8f6db5938bb3000001"},
> >> > "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil
> >> fields=nil
> >> > (0.6847ms)
> >> > MOPED: 127.0.0.1:27017 QUERY database=openshift_broker_dev
> >> > collection=cloud_users
> >> > selector={"$query"=>{"_id"=>"51e7d6bc6db593510b000002"},
> >> > "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil
> >> fields=nil
> >> > (0.3474ms)
> >> > MOPED: 127.0.0.1:27017 QUERY database=openshift_broker_dev
> >> collection=locks
> >> > selector={"$query"=>{"user_id"=>"51e7d6bc6db593510b000002"},
> >> > "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil
> >> fields=nil
> >> > (0.4232ms)
> >> > MOPED: 127.0.0.1:27017 COMMAND database=openshift_broker_dev
> >> > command={:findAndModify=>"locks",
> >> > :query=>{"user_id"=>"51e7d6bc6db593510b000002",
> >> "$or"=>[{"locked"=>false},
> >> > {"#<Origin::Key:0x000000045b64a0>"=>1374678845}],
> >> > "app_ids.51efec6b6db593a18700014b"=>{"$exists"=>true}}, :new=>true,
> >> > :update=>{"$set"=>{:locked=>true, :timeout=>1374680645}}} (0.5159ms)
> >> > MOPED: 127.0.0.1:27017 QUERY database=openshift_broker_dev
> >> > collection=cloud_users selector={:_id=>"51e7d6bc6db593510b000002"}
> >> flags=[]
> >> > limit=-1 skip=0 batch_size=nil fields=nil (0.2818ms)
> >> > MOPED: 127.0.0.1:27017 UPDATE database=openshift_broker_dev
> >> > collection=applications selector={"_id"=>"51efec6b6db593a18700014b"}
> >> >
> >> update={"$push"=>{"pending_op_groups.0.pending_ops"=>{"_id"=>"51efef3d6db593a18700016f",
> >> > "state"=>:init, "retry_count"=>0,
> >> >
> >> "saved_values"=>{"group_overrides"=>[{"components"=>[{"comp"=>"spilgames-erlang-15",
> >> > "cart"=>"spilgames-erlang-15"}, {"comp"=>"web_proxy",
> >> > "cart"=>"haproxy-1.4"}], "min_gears"=>1, "max_gears"=>1}]},
> >> > "op_type"=>:set_group_overrides,
> >> >
> >> "args"=>{"group_overrides"=>[{"components"=>[{"comp"=>"spilgames-erlang-15",
> >> > "cart"=>"spilgames-erlang-15"}, {"comp"=>"web_proxy",
> >> > "cart"=>"haproxy-1.4"}], "min_gears"=>1, "max_gears"=>1}]}}}} flags=[]
> >> > COMMAND database=openshift_broker_dev command={:getlasterror=>1,
> >> :safe=>true}
> >> > (0.6807ms)
> >> > MOPED: 127.0.0.1:27017 COMMAND database=openshift_broker_dev
> >> > command={:findAndModify=>"locks",
> >> > :query=>{"user_id"=>"51e7d6bc6db593510b000002", "locked"=>true,
> >> > "app_ids.51efec6b6db593a18700014b"=>{"$exists"=>true}}, :new=>true,
> >> > :update=>{"$set"=>{"locked"=>false}}} (0.4377ms)
> >> > MOPED: 127.0.0.1:27017 QUERY database=openshift_broker_dev
> >> > collection=applications
> >> > selector={"$query"=>{"_id"=>"51efec6b6db593a18700014b"},
> >> > "$orderby"=>{:_id=>1}} flags=[] limit=-1 skip=0 batch_size=nil
> >> fields=nil
> >> > (0.6993ms)
> >> > MOPED: 127.0.0.1:27017 UPDATE database=openshift_broker_dev
> >> > collection=applications selector={"_id"=>"51efec6b6db593a18700014b"}
> >> >
> >> update={"$set"=>{"pending_op_groups.0.pending_ops"=>[{"_id"=>"51efef3d6db593a18700016f",
> >> > "state"=>:init, "retry_count"=>0,
> >> >
> >> "saved_values"=>{"group_overrides"=>[{"components"=>[{"comp"=>"spilgames-erlang-15",
> >> > "cart"=>"spilgames-erlang-15"}, {"comp"=>"web_proxy",
> >> > "cart"=>"haproxy-1.4"}], "min_gears"=>1, "max_gears"=>1}]},
> >> > "op_type"=>:set_group_overrides,
> >> >
> >> "args"=>{"group_overrides"=>[{"components"=>[{"comp"=>"spilgames-erlang-15",
> >> > "cart"=>"spilgames-erlang-15"}, {"comp"=>"web_proxy",
> >> > "cart"=>"haproxy-1.4"}], "min_gears"=>1, "max_gears"=>1}]}}]}} flags=[]
> >> > COMMAND database=openshift_broker_dev command={:getlasterror=>1,
> >> :safe=>true}
> >> > (2.0292ms)
> >> > Execute set_group_overrides
> >> > ======================
> >> >
> >> > I can see it receives value of 10, but it sets max_gears to 1. I cannot
> >> > figure out why this is happening. I am using a custom (downloaded)
> >> cartridge
> >> > as you can see.
> >> >
> >> > _______________________________________________
> >> > dev mailing list
> >> > dev lists openshift redhat com
> >> > http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
> >> >
> >>
> >
> >
> >
> > --
> > Thijs Terlouw,
> > http://www.startinchina.com
> >
> >
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]