Skip to content

Merge with main #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 60 commits into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
52c2cf9
Add support for big sets in the ipset mgr.
urbanserj Aug 12, 2019
dd0aba6
Merge pull request #170 from dcos/urbanserj/ipset-split
urbanserj Aug 13, 2019
1368174
Bump Lashup
Aug 15, 2019
b3acd81
Merge pull request #174 from dcos/inc/bump-lashup
ichernetsky Aug 15, 2019
eb99285
Move from Lager to Logger
Aug 20, 2019
7d4fb3f
Merge pull request #177 from dcos/inc/logger
ichernetsky Aug 28, 2019
7d11e7f
Leverage exponential backoff with requests to Mesos
Aug 17, 2019
f6c0a5b
Merge pull request #176 from dcos/inc/exp-backoff
ichernetsky Aug 28, 2019
c979806
Add syntax_tools, compiler, and backoff as runtime deps
Aug 29, 2019
ef0b8b7
Merge pull request #180 from dcos/inc/backoff-dep
ichernetsky Aug 29, 2019
ebe19ad
Mesos listener is honest now again when asked if it is a leader or not
Sep 3, 2019
5b39cb9
Merge pull request #181 from dcos/inc/listener-leader-fix
ichernetsky Sep 4, 2019
691701b
Wait till agents become active before fanning out Mesos tasks
Aug 27, 2019
8e3302a
Merge pull request #179 from dcos/inc/agents-ready
ichernetsky Sep 16, 2019
18f9311
DC/OS overlay networks should be compared by-value
Oct 25, 2019
dd45fbd
Bump Lashup
Oct 26, 2019
0e79b50
Merge pull request #183 from dcos/inc/bump-lashup
ichernetsky Oct 26, 2019
418b544
Skip dns zone push if there are no updates
urbanserj Oct 30, 2019
b844389
Merge pull request #187 from dcos/urbanserj/dup-dns-update
urbanserj Oct 30, 2019
a48cdf9
Merge pull request #182 from dcos/inc/overlay-changed
ichernetsky Oct 30, 2019
37153ba
Remove support for set mode from dcos dns
urbanserj Oct 31, 2019
eb72421
Merge pull request #188 from dcos/urbanserj/rm-store-modes
urbanserj Nov 4, 2019
9ba689f
Add dcos_net_gen_mesos_listener behavior
urbanserj Nov 6, 2019
c9f8382
Add l4lb mesos listener
urbanserj Nov 6, 2019
eb0552f
Disable l4lb mesos poller on new dc/os clusters
urbanserj Nov 6, 2019
4a4032a
Remove unreachable node logic from l4lb mgr
urbanserj Nov 6, 2019
3f3d1d8
Get rid of nodemetadata publisher
urbanserj Nov 6, 2019
ba7ba03
Remove port mapping of local tasks
urbanserj Nov 6, 2019
475999a
Switch to the new LWW-based KV in l4lb
urbanserj Nov 6, 2019
c764900
Add eunit test for dcos_l4lb_mesos
urbanserj Nov 7, 2019
7a136d0
Migrate /v1/vips to the new LWW-based KV
urbanserj Nov 7, 2019
c0f07b2
Merge pull request #189 from dcos/urbanserj/l4lb
urbanserj Nov 8, 2019
098efb3
Codified run book
May 22, 2019
836bb7e
Merge pull request #153 from dcos/inc/runbook
orlandohohmeier Jan 6, 2020
681a5a1
Save netstat output
Jan 14, 2020
c7ef00c
Merge pull request #190 from dcos/inc/runbook-netstat
Jan 20, 2020
2c46411
runbook: fix shellcheck issues
jkoelker Jan 30, 2020
77b9e53
runbook: wrap dig in toolbox if available
jkoelker Jan 30, 2020
180f5e9
runbook: wrap "main" in a function
jkoelker Jan 30, 2020
175edad
Revert "Merge pull request #189 from dcos/urbanserj/l4lb"
jkoelker Feb 19, 2020
cccf7d1
Merge pull request #192 from jkoelker/revert_streaming
jkoelker Feb 21, 2020
2ddc356
Merge pull request #191 from jkoelker/dig_in_docker
jkoelker Feb 24, 2020
6d23d92
net: add killing state
jkoelker Feb 19, 2020
d58b380
l4lb: allow killing states to be healthy
jkoelker Feb 19, 2020
8f005f3
l4lb: add weight to backends
jkoelker Feb 20, 2020
699c5b7
l4lb: set unhealthy tasks to backend weight of `0`
jkoelker Mar 3, 2020
1670c37
Merge pull request #193 from jkoelker/task_killing
Mar 10, 2020
7455562
l4lb: handle unweighted backends
jkoelker Apr 2, 2020
63c8014
l4lb: use the previous vips from the state
jkoelker Apr 2, 2020
36669c6
l4lb: log backend weight
jkoelker Apr 2, 2020
9e5d3c4
l4lb: modify backends switching weight
jkoelker Apr 8, 2020
22744fc
l4lb: fix metric name
jkoelker Mar 24, 2020
f8addb3
l4lb: handle weights optionally in `bes_port_mappings`
jkoelker Apr 13, 2020
dc8680e
l4lb: add tests for backend weighting
jkoelker Apr 21, 2020
d35033b
Merge pull request #198 from jkoelker/fwd_vip_weight_regression
jkoelker Apr 22, 2020
ec3f73f
runbook: capture more data
jkoelker Aug 28, 2020
0c2a73a
Merge pull request #200 from jkoelker/runbook_additions
jkoelker Aug 28, 2020
1db489b
runbook: capture vxlan state and nclock
jkoelker Sep 1, 2020
18d4fc2
runbook: capture stderr for routing table 42
jkoelker Sep 2, 2020
7bd01ac
Merge pull request #201 from jkoelker/runbook_additions
jkoelker Sep 2, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disable l4lb mesos poller on new dc/os clusters
  • Loading branch information
urbanserj committed Nov 8, 2019
commit eb0552fbd4455db0b22093a13cf956b341fbb788
21 changes: 19 additions & 2 deletions apps/dcos_l4lb/src/dcos_l4lb_mesos_poller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

-include("dcos_l4lb.hrl").
-include_lib("kernel/include/logger.hrl").
-include_lib("stdlib/include/ms_transform.hrl").

-ifdef(TEST).
-include_lib("eunit/include/eunit.hrl").
Expand All @@ -25,7 +26,8 @@

-record(state, {
backoff :: backoff:backoff(),
timer_ref = make_ref() :: reference()
timer_ref = make_ref() :: reference(),
wait_ref :: reference() | undefined
}).

-type task() :: dcos_net_mesos_listener:task().
Expand Down Expand Up @@ -56,7 +58,7 @@ init([]) ->
PollMaxInterval = dcos_l4lb_config:agent_poll_max_interval(),
Backoff0 = backoff:init(PollInterval, PollMaxInterval, self(), poll),
Backoff = backoff:type(Backoff0, jitter),
{ok, #state{backoff = Backoff}, {continue, poll}}.
{ok, #state{backoff = Backoff}, {continue, wait}}.

handle_call(Request, _From, State) ->
?LOG_WARNING("Unexpected request: ~p", [Request]),
Expand All @@ -66,12 +68,27 @@ handle_cast(Request, State) ->
?LOG_WARNING("Unexpected request: ~p", [Request]),
{noreply, State}.

handle_info({lashup_kv_event, WRef, ?VIPS_KEY2}, State) ->
ok = lashup_kv:flush(WRef, ?VIPS_KEY2),
case lashup_kv:raw_value(?VIPS_KEY2) of
false ->
% ?VIPS_KEY2 doesn't exist
{noreply, State};
_Value ->
ok = lashup_kv:unsubscribe(WRef),
{noreply, State#state{wait_ref = undefined}, {continue, poll}}
end;
handle_info({timeout, TRef, poll}, #state{timer_ref = TRef} = State) ->
{noreply, State, {continue, poll}};
handle_info(Info, State) ->
?LOG_WARNING("Unexpected info: ~p", [Info]),
{noreply, State}.

handle_continue(wait, State) ->
% Wait for ?VIPS_KEY2 and start polling only if it exists.
MatchSpec = ets:fun2ms(fun ({?VIPS_KEY2}) -> true end),
{ok, WRef} = lashup_kv:subscribe(MatchSpec),
{noreply, State#state{wait_ref=WRef}};
handle_continue(poll, #state{backoff = Backoff0} = State) ->
{Backoff, TimerRef} = handle_poll(Backoff0),
{noreply, State#state{backoff = Backoff, timer_ref = TimerRef}, hibernate};
Expand Down
1 change: 1 addition & 0 deletions apps/dcos_l4lb/test/dcos_l4lb_mesos_poller_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ node_ip() ->

ensure_l4lb_started() ->
{ok, _} = application:ensure_all_started(dcos_l4lb),
{ok, _} = lashup_kv:request_op(?VIPS_KEY2, {update, []}),
meck:wait(dcos_net_mesos_listener, poll, '_', 5000),
meck:wait(dcos_l4lb_mgr, local_port_mappings, '_', 100),
timer:sleep(100).
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy