Skip to content

stats: add scope concept#334

Merged
mattklein123 merged 2 commits intomasterfrom
cluster_stats
Jan 9, 2017
Merged

stats: add scope concept#334
mattklein123 merged 2 commits intomasterfrom
cluster_stats

Conversation

@mattklein123
Copy link
Copy Markdown
Member

Currently stats are allocated from a fix memory pool in shared memory
so that we can do hot restart. We have no facility to delete stats. This
is not going to work when we can add/remove clusters dynamically. This
commit adds a new scope concept and plumbs through a scope for all cluster
stats. The actual scope implementation doesn't do anything currently other
than just pass through to the main store. The actual shared memory
implementation of deletion is quite complicated so I will do that in a
dedicated smaller change.

A few other notes:

  1. I got rid of alt_stat_prefix from cluster. This was used a long time ago
    when we were rolling out sds. It's hard to support in the new scheme so
    I'm just getting rid of it.
  2. How we manage SSL contexts is also broken for cluster deletion. The contexts
    are currently global and not deleted. I will fix this in a follow up.

Currently stats are allocated from a fix memory pool in shared memory
so that we can do hot restart. We have no facility to delete stats. This
is not going to work when we can add/remove clusters dynamically. This
commit adds a new scope concept and plumbs through a scope for all cluster
stats. The actual scope implementation doesn't do anything currently other
than just pass through to the main store. The actual shared memory
implementation of deletion is quite complicated so I will do that in a
dedicated smaller change.

A few other notes:
1) I got rid of alt_stat_prefix from cluster. This was used a long time ago
   when we were rolling out sds. It's hard to support in the new scheme so
   I'm just getting rid of it.
2) How we manage SSL contexts is also broken for cluster deletion. The contexts
   are currently global and not deleted. I will fix this in a follow up.
@mattklein123
Copy link
Copy Markdown
Member Author

@lyft/network-team please review. Sorry for another really large change. This is pretty straightforward though. I will do all of the more complicated shared memory deletion stuff in a different commit.

@mattklein123 mattklein123 merged commit 009d341 into master Jan 9, 2017
@mattklein123 mattklein123 deleted the cluster_stats branch January 9, 2017 20:42
mattklein123 added a commit that referenced this pull request Jan 10, 2017
Regresion from #334. I'm in the process of rewriting all of the scope stuff
currently so I'm not going to bother with tests. I will add tests in the real
change.
mattklein123 added a commit that referenced this pull request Jan 10, 2017
Regresion from #334. I'm in the process of rewriting all of the scope stuff
currently so I'm not going to bother with tests. I will add tests in the real
change.
enricoschiattarella pushed a commit to enricoschiattarella/envoy that referenced this pull request Jan 10, 2017
Regresion from envoyproxy#334. I'm in the process of rewriting all of the scope stuff
currently so I'm not going to bother with tests. I will add tests in the real
change.
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
rshriram pushed a commit to rshriram/envoy that referenced this pull request Oct 30, 2018
Automatic merge from submit-queue.

[DO NOT MERGE] Auto PR to update dependencies of mixerclient

This PR will be merged automatically once checks are successful.
```release-note
none
```
lambdai pushed a commit to lambdai/envoy-dai that referenced this pull request Jun 12, 2022
mathetake pushed a commit that referenced this pull request Mar 3, 2026
**Commit Message**

extproc: remove the path from the translator factory

Removes the path from the translator factory, now that there is a
dedicated processor for the chat completion endpoint.

**Related Issues/PRs (if applicable)**

Follow-up for:
envoyproxy/ai-gateway#325 (review)

**Special notes for reviewers (if applicable)**

Note that I don't remove the `Factory` type completely so that only the
right translator is instantiated and only when needed.

---------

Signed-off-by: Ignasi Barrera <ignasi@tetrate.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants