components-contrib icon indicating copy to clipboard operation
components-contrib copied to clipboard

Consul name resolution in-memory cache

Open a-elsheikh opened this issue 3 years ago • 19 comments

Description

Added service cache to consul nr component

Issue reference

#934

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • [ ] Code compiles correctly
  • [ ] Created/updated tests
  • [ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

a-elsheikh avatar Jun 17 '21 09:06 a-elsheikh

@a-elsheikh have you tested this in your environment?

yaron2 avatar Jul 12 '21 18:07 yaron2

@a-elsheikh have you tested this in your environment?

In self-hosted mode, yes - it would be best if someone could evaluate the behaviour on k8s

a-elsheikh avatar Jul 13 '21 09:07 a-elsheikh

@a-elsheikh After the 1.3.0 release, I will spend some cycles to test this on K8s.

pkedy avatar Jul 26 '21 19:07 pkedy

@artursouza can you continue reviewing this please?

yaron2 avatar Aug 30 '21 15:08 yaron2

@artursouza any updates on this?

a-elsheikh avatar Sep 20 '21 08:09 a-elsheikh

@artursouza @yaron2 any eyes on this please, I've just attempted to merge master again but these failures I can't resolve

a-elsheikh avatar Nov 16 '21 10:11 a-elsheikh

@a-elsheikh many apologies this has taken so long to review, we'll actively put eyes on this PR now.

Can you please merge with master? /cc @artursouza

yaron2 avatar Dec 31 '21 20:12 yaron2

@a-elsheikh many apologies this has taken so long to review, we'll actively put eyes on this PR now.

Can you please merge with master? /cc @artursouza

no worries, thank you @yaron2

a-elsheikh avatar Jan 03 '22 16:01 a-elsheikh

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

dapr-bot avatar Feb 02 '22 16:02 dapr-bot

hey @yaron2 @artursouza - any updates on this please. We're keen on utilizing this feature as part of our adoption strategy

a-elsheikh avatar Feb 07 '22 09:02 a-elsheikh

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

dapr-bot avatar Mar 09 '22 09:03 dapr-bot

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

dapr-bot avatar Apr 06 '22 15:04 dapr-bot

@artursouza can you have a look please

a-elsheikh avatar Apr 06 '22 15:04 a-elsheikh

Reopening

artursouza avatar Apr 06 '22 16:04 artursouza

image

chenjpu avatar May 12 '22 04:05 chenjpu

image

@yaron2 @artursouza any updates please :)

a-elsheikh avatar May 13 '22 14:05 a-elsheikh

@artursouza @yaron2 I believe we addressed your review comments on this PR some time ago, with 1.8.0 now out the door could you please pick this up and prioritize it again as we do need this for our next phase of Dapr rollout.

badgeratu avatar Jul 18 '22 10:07 badgeratu

@a-elsheikh could you please merge master into the branch again to address the potential conflict? I tried pushing a commit but it does not appear you are giving maintainers edit access to your PR / branch.

berndverst avatar Aug 15 '22 23:08 berndverst

Codecov Report

Patch coverage: 90.47% and project coverage change: +2.09% :tada:

Comparison is base (33a5fd2) 34.97% compared to head (c7d9e20) 37.07%.

:exclamation: Current head c7d9e20 differs from pull request most recent head 803d29d. Consider uploading reports for the commit 803d29d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #963      +/-   ##
==========================================
+ Coverage   34.97%   37.07%   +2.09%     
==========================================
  Files         241      212      -29     
  Lines       29887    26904    -2983     
==========================================
- Hits        10454     9975     -479     
+ Misses      18552    16152    -2400     
+ Partials      881      777     -104     
Files Changed Coverage Δ
nameresolution/consul/consul.go 79.01% <87.80%> (+5.33%) :arrow_up:
nameresolution/consul/watcher.go 92.07% <92.07%> (ø)
nameresolution/consul/configuration.go 96.13% <100.00%> (+1.44%) :arrow_up:

... and 228 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Aug 16 '22 04:08 codecov[bot]

It looks like this PR is outdated and probably irrelevant at this point. Ok to close this? CC: @berndverst

ItalyPaleAle avatar Mar 08 '23 18:03 ItalyPaleAle

It's definitely not outdated, we've been waiting patiently for a re-review as we believe we've addressed all comments. If you could push that it would be greatly appreciated, this is still a vital feature required by us.

badgeratu avatar Mar 08 '23 18:03 badgeratu

Ok, thanks for confirming. If you can fix the merge conflicts, I'll review it for Dapr 1.11.

ItalyPaleAle avatar Mar 13 '23 18:03 ItalyPaleAle

I also really need this feature

alberthuang24 avatar Apr 27 '23 07:04 alberthuang24

@badgeratu because we do not have write access to your fork we cannot shepherd this PR -- so this PR will constantly encounter merge conflicts that only you can resolve. It's very difficult to merge PRs where we as maintainers do not have automatic write access to the remote fork.

Can you invite contrib maintainers directly to have write access to your fork so we can unblock this pr (it seems you have disabled the feature to give repo maintainers this ability automatically at an organizational level)? The maintainers are: @ItalyPaleAle @yaron2 @berndverst @artursouza

We are days (or maybe just one day) away from code freeze for 1.11. If we find that tests pass after addressing merge conflicts and updating the branch then this is likely good to go - but we'll re-review then.

berndverst avatar May 01 '23 19:05 berndverst

hey @berndverst thanks for reaching out - as this fork exists under the corporate area we've limited flexibility in amending the permissions. In any case, I've got eyes on this now so am happy to iterate with the maintainers to see it done now that there is engagement.

a-elsheikh avatar May 02 '23 15:05 a-elsheikh

@a-elsheikh @badgeratu can you please ping me in Discord (@bernd) once you have resolved merge conflicts and fixed DCO here?

I will try to get this merged - we are now at code freeze for 1.12 - but if you can get this resolved Monday we can still try to get it in!

berndverst avatar Sep 08 '23 21:09 berndverst

Closing as it's been re-created as #3121

ItalyPaleAle avatar Sep 11 '23 14:09 ItalyPaleAle