Skip to content

Commit 31a623a

Browse files
authored
Merge branch 'main' into kelsey-brown-patch-2
2 parents 5990bf6 + b32ae60 commit 31a623a

File tree

6 files changed

+46
-26
lines changed

6 files changed

+46
-26
lines changed

docs/admin/deploy/machine-images/aws-ami.mdx

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,24 @@ All Sourcegraph AMIs are published from one of the following AWS accounts:
1616
- Account ID: `870751268155`
1717

1818

19-
### Instance size chart
19+
### Instance sizing
2020

21-
Select an AMI according and instance type to the number of users and repositories you have using this table. If you fall between two sizes, choose the larger of the two.
22-
23-
For example, if you have 8,000 users with 80,000 repositories, your instance size would be **L**. If you have 1,000 users with 80,000 repositories, you should still go with size **M**.
24-
25-
| | **XS** | **S** | **M** | **L** | **XL** |
26-
|----------------------|---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|
27-
| **Users** | greater than or equal to 500 | greater than or equal to 1,000 | greater than or equal to 5,000 | greater than or equal to 10,000 | greater than or equal to 20,000 |
28-
| **Repositories** | greater than or equal to 5,000 | greater than or equal to 10,000 | greater than or equal to 50,000 | greater than or equal to 100,000 | greater than or equal to 250,000 |
29-
| **Recommended Type** | m6a.2xlarge | m6a.4xlarge | m6a.8xlarge | m6a.12xlarge | m6a.24xlarge |
30-
| **Minimum Type** | m6a.2xlarge | m6a.2xlarge | m6a.4xlarge | m6a.8xlarge | m6a.12xlarge |
31-
| **AMIs List** | [size-XS AMIs](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;imageName=Sourcegraph-XS) | [size-S AMIs](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;imageName=Sourcegraph-S) | [size-M AMIs](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;imageName=Sourcegraph-M) | [size-L AMIs](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;imageName=Sourcegraph-L) | [size-XL AMIs](https://console.aws.amazon.com/ec2/v2/home#Images:visibility=public-images;imageName=Sourcegraph-XL) |
21+
Refer to our [AWS Instance Sizing](/how-to/aws-instance-sizing) guide to determine the appropriate EC2 instance type for your Sourcegraph deployment based on the number of users and repositories.
3222

3323
Click [here](https://github.com/sourcegraph/deploy#amazon-ec2-amis) to see the completed list of AMI IDs published in each region.
3424

3525
**The default AMI username is `ec2-user`.**
3626

37-
<Callout type="note">While we recommend certain image types in our sizing chart, AMIs will dynamically use the resources available on the EC2 instance type they are deployed to, provided the minimum amount of resources needed is available. If you would like to resize your EC2 instance, follow the [upgrade steps](#upgrade) to switch to the correct AMI image that is optimized for your EC2 instance type.</Callout>
38-
3927
---
4028

4129
## Deploy Sourcegraph
4230

43-
1. In the [instance size chart](#instance-size-chart), click the link for the AMI that matches your deployment size.
31+
<img width="1256" alt="Screenshot 2025-05-06 at 3 52 51 PM" src="https://github.com/user-attachments/assets/8e98792b-16d9-4c0c-a3a1-981246a811b8" />
32+
33+
1. Search for Sourcegraph in the AWS Marketplace or AMI catalog (see screenshot in the introduction).
4434
2. Choose **Launch instance from AMI**.
4535
3. Name your instance.
46-
4. Select an **instance type** according to [the sizing chart](#instance-size-chart) or your needs.
36+
4. Select an **instance type** according to [our sizing guide](/how-to/aws-instance-sizing) or your specific requirements.
4737
5. **Key pair (login)**: Select or create a new Key Pair for connecting to your instance securely (this may be required in the event you need support).
4838
6. **Network settings**:
4939
- Under "Auto-assign public IP" select "Enable".

docs/analytics/index.mdx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
# Sourcegraph Analytics
22

3-
Enterprise customers can use Sourcegraph Analytics to get a clear view of usage, engagement, performance, and impact.
3+
Enterprise customers can use Sourcegraph Analytics to get a clear view of usage, engagement, performance, and impact.
44

55
## Sourcegraph Cloud Analytics
6+
This solution is available to:
7+
- [Sourcegraph Cloud](/cloud) customers
8+
- Self-hosted customers that have fully enabled usage telemetry, and that are running a supported version of Sourcegraph (5.9+)
69

710
[Sourcegraph Cloud](/cloud) customers can use our managed [cloud analytics service](https://cody-analytics.sourcegraph.com) for Cody and Code Search usage data.
8-
Self-hosted customers can also use this service, but they must
9-
10-
Upgrade to a supported version of Sourcegraph (5.9+)
11-
Have fully enabled usage telemetry.
12-
11+
Self-hosted customers can also use this service, but they must:
12+
- Upgrade to a supported version of Sourcegraph (5.9+)
13+
- Have fully enabled usage telemetry
1314
- [Enablement instructions](/analytics/cloud#enablement)
1415

16+
For more details on setting up Sourcegraph Analytics, see our [enablement instructions](/analytics/cloud#enablement)
17+
1518
![Sourcegraph-cloud-analytics](https://storage.googleapis.com/sourcegraph-assets/Docs/Sourcegraph-Analytics-2025-01-28.png)
1619

17-
## Self-Hosted Analytics
20+
## Air-gapped Analytics
1821

19-
Self-hosted customers will soon be able to use our self-hosted and locally deployed analytics service, built on Grafana, to see Sourcegraph usage data.
22+
Air-gapped customers will soon be able to use our self-hosted and locally deployed analytics service, built on Grafana, to see Sourcegraph usage data.
2023

2124
This product is in development now. If you would like to learn more, please contact your Sourcegraph representative.
2225

docs/analytics/pcw.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ It’s simple to identify which code is generated by Cody, but much more difficu
3434
- We exclude disjoint insertions - insertions made in multiple places at once, which are likely to come from third party sources
3535
- We exclude any insertions made in an inactive file/editor window
3636
- We exclude any insertions into “stale” code - code the user hasn’t touched in the last 5 seconds
37+
38+
This metric only includes data from users on Cody versions 1.42+.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# AWS Instance Sizing for Sourcegraph
2+
3+
## Instance size chart
4+
5+
Select an instance type according to the number of users and repositories you have using this table. If you fall between two sizes, choose the larger of the two.
6+
7+
For example, if you have 8,000 users with 80,000 repositories, your instance size would be **L**. If you have 1,000 users with 80,000 repositories, you should still go with size **M**.
8+
9+
| | **XS** | **S** | **M** | **L** | **XL** |
10+
|----------------------|-----------------------|-----------------------|-----------------------|-----------------------|------------------------|
11+
| **Users** | ≥ 500 | ≥ 1,000 | ≥ 5,000 | ≥ 10,000 | ≥ 20,000 |
12+
| **Repositories** | ≥ 5,000 | ≥ 10,000 | ≥ 50,000 | ≥ 100,000 | ≥ 250,000 |
13+
| **Recommended Type** | m6a.2xlarge | m6a.4xlarge | m6a.8xlarge | m6a.12xlarge | m6a.24xlarge |
14+
| **Minimum Type** | m6a.2xlarge | m6a.2xlarge | m6a.4xlarge | m6a.8xlarge | m6a.12xlarge |
15+
16+
<Callout type="note">While we recommend certain instance types in our sizing chart, the Sourcegraph AMI will dynamically use the resources available on the EC2 instance type it is deployed to, provided the minimum amount of resources needed is available. If you would like to resize your EC2 instance, follow the [upgrade steps](/admin/deploy/machine-images/aws-ami#upgrade) to switch to a more appropriate instance type.</Callout>

src/components/MdxComponents.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ const MdxComponents = (version?: string) => {
5353
h3: (props: any) => {
5454
return <Heading level="3" id={props.id} props={props} />;
5555
},
56+
h4: (props: any) => {
57+
return <Heading level="4" id={props.id} props={props} />;
58+
},
59+
h5: (props: any) => {
60+
return <Heading level="5" id={props.id} props={props} />;
61+
},
62+
h6: (props: any) => {
63+
return <Heading level="6" id={props.id} props={props} />;
64+
},
5665
img: (props: any) => {
5766
return <img className="rounded-xl" {...props} />;
5867
},

src/components/mdx/Heading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ function Anchor({id, children}: {id: string; children: ReactNode}) {
5858
}
5959

6060
interface HeadingProps {
61-
level?: '2' | '3';
61+
level?: '2' | '3' | '4' | '5' | '6';
6262
id: string;
6363
props: any;
6464
}
6565

6666
export function Heading({level = '2', id, props}: HeadingProps) {
67-
let Component = `h${level}` as 'h2' | 'h3';
67+
let Component = `h${level}` as 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
6868
return (
6969
<Component {...props}>
7070
<Anchor id={id}>{props.children}</Anchor>

0 commit comments

Comments
 (0)