LLM Community · Discussion: is the llm ecosystem being replaced by another stack?

1.5K
LLr/llm·posted by kernel_panic·2 hours agoExperience

Discussion: is the llm ecosystem being replaced by another stack?

Some background first. Our setup is llm plus three downstream services, seven figures of daily requests, peaking around nine in the evening.

One last trap: in container environments remember to adjust the memory-related parameters in step. Otherwise the host limit and the process expectation disagree, and the symptom is intermittent, unreproducible failure.

Performance44%
Maintainability28%
Ecosystem and community17%
Hiring difficulty11%

2589 votes total

222 comments

222 comments

· first 120 loaded
M
Wwinter·2 days ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

499
Oops_wang·2 days ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

440
Aalice_dev·2 days ago

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

397
Bbob_chenMod·2 days ago

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

353
Sslow_query·3 minutes ago

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

349
Aalice_dev·28 minutes ago

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

103
Ddev_zhou·1 hour ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

392
Ddev_zhou·2 days ago

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

288
Kkernel_panic·2 days agoedited

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

100
Sswoole_lee·2 days ago

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

410
Nnikic·2 days agoLevel 6

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

118
Lli_ming·2 days agoLevel 6

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

41
Kkite·2 days agoLevel 6

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

1
Cchen_dev·2 days ago

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

5
Aalice_devMod·5 hours ago

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

226
Sswoole_lee·2 days agoLevel 6

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

425
Kkernel_panic·2 days agoLevel 6

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

41
Ttang_hao·2 days agoLevel 6

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

28
Cchen_devOP·2 days ago

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

75
Rrase·2 days ago

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

1
Rran_bo·yesterdayedited

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

122
Zzhu_zong·2 days agoedited

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

464
Zzhou_yi·2 days ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

181
Ttang_hao·2 days agoLevel 6

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

97
LlinlinMod·2 days ago

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

1
Rran_bo·2 days ago

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

10
Ddev_zhou·28 minutes agoedited

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

39
Zzhu_zong·2 days ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

1
Nnikic·3 minutes ago

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

67
Oops_wang·2 days agoLevel 6

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

257
Llinlin·2 days ago

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

108
Llinlin·3 minutes ago

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

12
Cchen_dev·28 minutes ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

300
Sslow_query·2 days ago

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

338
Sslow_query·28 minutes agoedited

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

329
Rrase·2 days ago

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

71
Rran_bo·2 days ago

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

1
Zzhu_zong·1 hour ago

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

2
Rrase·28 minutes ago

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

320
Nnikic·2 days ago

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

320
Hhuang_ke·2 days ago

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

316
Llinlin·2 days ago

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

251
Bbob_chenOP·2 days ago

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

239
Nnikic·2 days ago

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

214
Bbob_chen·just now

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

297
Cchen_dev·2 days ago

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

147
Sswoole_lee·2 days ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

295
Lli_ming·3 minutes ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

274
RraseOP·2 days ago

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

188
Nnikic·2 days agoedited

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

19
Wwinter·2 days ago

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

225
Oops_wang·2 days ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

224
RraseMod·2 days ago

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

197
Ttang_hao·2 hours ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

127
Sswoole_lee·yesterday

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

125
Mmike_xuOP·2 days ago

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

28
Ttang_hao·2 days ago

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

78
NnikicMod·yesterday

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

144
Bbob_chenOP·just now

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

16
WwinterOP·just now

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

15
Llinlin·2 days ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

75
Ddev_zhou·just now

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

69
Kkernel_panic·just now

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

520
Hhuang_keMod·2 days ago

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

68
Bbob_chen·2 days ago

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

67
Bbob_chen·2 days ago

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

62
Rrase·2 days agoedited

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

60
Mmike_xuMod·2 days ago

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

42
Sswoole_lee·just now

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

41
Ttang_hao·2 days ago

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

37
Kkite·2 days ago

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

403
KkiteOP·2 days agoedited

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

197
Bbob_chen·2 days ago

Has anyone run a controlled experiment? I did, reducing it to a single variable, and the difference was 4% — within noise. So I suspect the main cause is something else.

100
Rrase·2 days ago

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

22
Hhuang_ke·2 days ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

72
Oops_wang·2 days ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

19
Lli_ming·yesterday

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

25
Aalice_devOP·2 days ago

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

466
Sswoole_lee·2 days ago

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

1
Zzhou_yi·2 days ago

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

22
Rrase·2 days ago

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

18
Zzhou_yi·2 days ago

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

14
Wwinter·2 days ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

13
Llinlin·2 days ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

9
Zzhu_zong·2 days ago

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

8
Zzhu_zong·2 days ago

This matches what we see in production. We only hit it past 3k QPS; the earlier load tests showed nothing — the test traffic was too clean, with no long-tail requests.

264
Cchen_dev·2 days ago

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

4
Ddev_zhou·2 days ago

Thanks for sharing real numbers — far more useful than the articles that only cover concepts.

4
Zzhu_zong·2 days agoedited

Saved. I am reworking this area this week — this saves a lot of wrong turns.

366
Rran_bo·3 minutes ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

3
Rran_bo·5 hours agoedited

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

3
Cchen_dev·2 days ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

2
Cchen_dev·3 minutes ago

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

1
Ddev_zhou·just now

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

21
Lli_ming·2 days ago

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

149
Zzhu_zongMod·1 hour ago

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

161
Kkite·12 minutes ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

320
Sswoole_lee·2 days ago

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

215
Aalice_dev·2 days agoeditedLevel 6

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

267
Zzhou_yi·2 days ago

One counter-example: below llm 7.4 the semantics of that code are different, so do not copy it verbatim. We got burned in staging and rolled back once.

4
Sslow_query·1 hour agoeditedLevel 6

Sharing our numbers, 8 cores 16GB, same scenario:

| Concurrency | P50 | P99 |
|---|---|---|
| 200 | 12ms | 88ms |
| 500 | 31ms | 340ms |

P99 clearly collapses at 500 concurrency, which lines up with your knee point.

321
Kkite·12 minutes agoLevel 6

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

145
Rrase·2 days agoLevel 6

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

3
Zzhu_zong·2 days agoedited

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

124
Wwinter·5 hours ago

Saved. I am reworking this area this week — this saves a lot of wrong turns.

79
Ddev_zhou·12 minutes ago

A question: what changes in a container with a 512Mi memory limit? That is how we run it in production.

13
Rran_bo·just now

Agreeing with the above. One addition: with this option enabled the GC count in your metrics doubles, so adjust the alert threshold at the same time or it will keep firing.

87
Sswoole_lee·2 days agoLevel 6

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

460
Sswoole_lee·2 days agoLevel 6

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

311
Ddev_zhou·1 hour ago

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

15
Ttang_hao·2 days ago

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

1
Sslow_query·2 days ago

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

1
Ddev_zhou·2 days ago

This is not a llm problem, it is a usage problem. The docs say this API is not thread-safe and you must lock around it yourself.

161
Oops_wang·2 days ago

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

1
Aalice_dev·2 days ago

We have run this in production for two years without hitting it. That said, we never reached this scale, so our experience is not really evidence here.

1
Kkite·2 days agoedited

Worth learning from this debugging approach. We went straight at the logs and took a much longer route.

98
Llinlin·2 days ago

I just read the llm source — the author actually explains the reasoning in a comment, roughly "so that it degrades into predictable behaviour in extreme cases".

1
Zzhu_zong·2 days ago

I see point 3 differently. The trade-off depends on your read/write ratio: read-heavy with little writing means caching actually widens the inconsistency window.

1
Aalice_dev·2 days ago

Can you give a minimal reproduction? I ran it locally for ten minutes and could not reproduce on macOS with the latest version.

347
Mmike_xu·2 days ago

There is actually a simpler fix that needs no architecture change: move this check up to the gateway and the problem disappears. The cost is one extra lookup at the gateway.

1

This is the post detail page /en/c/llm/post/p13. Posts and comments are generated deterministically from a seeded PRNG, so the same post always renders the same content and the link can be shared, reloaded and indexed. In production this page reads MySQL for the post, Redis for hot-post caching, and fetches the whole comment tree in a single query on the path column.

See the database schema →