Is it possible today to replicate 30 TB from multiple databases to PostgreSQL close to real-time?
If you had 20 databases spread across 20 servers, could you replicate them all into a single PostgreSQL instance? And can this be done on a server costing less than $100,000?
The databases total 30 TB on disk. There are ~30,000 tables. The maximum number of rows in a single table is 1.2 billion. The number of rows changed per second is modest (100s or less).
Some of the servers run PostgreSQL, some MySQL. The versions are different, but they're relatively current (PostgreSQL >= 9.1, MySQL >= 5.6).
postgresql replication
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
If you had 20 databases spread across 20 servers, could you replicate them all into a single PostgreSQL instance? And can this be done on a server costing less than $100,000?
The databases total 30 TB on disk. There are ~30,000 tables. The maximum number of rows in a single table is 1.2 billion. The number of rows changed per second is modest (100s or less).
Some of the servers run PostgreSQL, some MySQL. The versions are different, but they're relatively current (PostgreSQL >= 9.1, MySQL >= 5.6).
postgresql replication
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Postgres 9.1 is not really current. It's out of support since 2016, September: Versioning policy
– ypercubeᵀᴹ
Apr 30 '17 at 15:55
Easily done if you refactor. 30k tables smells of bad design. Large well indexed tables scale
– Philᵀᴹ
Apr 30 '17 at 17:30
2
Sounds doable, but not really Stack Overflow material. More postgresql.org/support/professional_support material. (Disclaimer, I work for one of the listed companies).
– Craig Ringer
May 1 '17 at 1:34
add a comment |
If you had 20 databases spread across 20 servers, could you replicate them all into a single PostgreSQL instance? And can this be done on a server costing less than $100,000?
The databases total 30 TB on disk. There are ~30,000 tables. The maximum number of rows in a single table is 1.2 billion. The number of rows changed per second is modest (100s or less).
Some of the servers run PostgreSQL, some MySQL. The versions are different, but they're relatively current (PostgreSQL >= 9.1, MySQL >= 5.6).
postgresql replication
If you had 20 databases spread across 20 servers, could you replicate them all into a single PostgreSQL instance? And can this be done on a server costing less than $100,000?
The databases total 30 TB on disk. There are ~30,000 tables. The maximum number of rows in a single table is 1.2 billion. The number of rows changed per second is modest (100s or less).
Some of the servers run PostgreSQL, some MySQL. The versions are different, but they're relatively current (PostgreSQL >= 9.1, MySQL >= 5.6).
postgresql replication
postgresql replication
asked Apr 30 '17 at 12:18
dba_leveling_updba_leveling_up
61
61
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Postgres 9.1 is not really current. It's out of support since 2016, September: Versioning policy
– ypercubeᵀᴹ
Apr 30 '17 at 15:55
Easily done if you refactor. 30k tables smells of bad design. Large well indexed tables scale
– Philᵀᴹ
Apr 30 '17 at 17:30
2
Sounds doable, but not really Stack Overflow material. More postgresql.org/support/professional_support material. (Disclaimer, I work for one of the listed companies).
– Craig Ringer
May 1 '17 at 1:34
add a comment |
1
Postgres 9.1 is not really current. It's out of support since 2016, September: Versioning policy
– ypercubeᵀᴹ
Apr 30 '17 at 15:55
Easily done if you refactor. 30k tables smells of bad design. Large well indexed tables scale
– Philᵀᴹ
Apr 30 '17 at 17:30
2
Sounds doable, but not really Stack Overflow material. More postgresql.org/support/professional_support material. (Disclaimer, I work for one of the listed companies).
– Craig Ringer
May 1 '17 at 1:34
1
1
Postgres 9.1 is not really current. It's out of support since 2016, September: Versioning policy
– ypercubeᵀᴹ
Apr 30 '17 at 15:55
Postgres 9.1 is not really current. It's out of support since 2016, September: Versioning policy
– ypercubeᵀᴹ
Apr 30 '17 at 15:55
Easily done if you refactor. 30k tables smells of bad design. Large well indexed tables scale
– Philᵀᴹ
Apr 30 '17 at 17:30
Easily done if you refactor. 30k tables smells of bad design. Large well indexed tables scale
– Philᵀᴹ
Apr 30 '17 at 17:30
2
2
Sounds doable, but not really Stack Overflow material. More postgresql.org/support/professional_support material. (Disclaimer, I work for one of the listed companies).
– Craig Ringer
May 1 '17 at 1:34
Sounds doable, but not really Stack Overflow material. More postgresql.org/support/professional_support material. (Disclaimer, I work for one of the listed companies).
– Craig Ringer
May 1 '17 at 1:34
add a comment |
1 Answer
1
active
oldest
votes
How fast is the network connection? Do some math -- 30TB through a single pipe will take how many days? That's just to get the data started. Then redo the calculation based on how fast the data grows.
There is some amount of overhead; I guestimate that the initial 30TB would take a few weeks. You have not provided numbers for how much traffic per hour in steady state. You can estimate that by watching the size of the binlogs on a representative server, then multiply by 20.
Once you have the 30TB on a single server, have you figured out what you can do with it? Again, some math would compute how many days or weeks it would take to do something with all that data.
Oh, I forgot about the overhead that you might incur to get the index(es) built. Are you using SSDs?
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f172369%2fis-it-possible-today-to-replicate-30-tb-from-multiple-databases-to-postgresql-cl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
How fast is the network connection? Do some math -- 30TB through a single pipe will take how many days? That's just to get the data started. Then redo the calculation based on how fast the data grows.
There is some amount of overhead; I guestimate that the initial 30TB would take a few weeks. You have not provided numbers for how much traffic per hour in steady state. You can estimate that by watching the size of the binlogs on a representative server, then multiply by 20.
Once you have the 30TB on a single server, have you figured out what you can do with it? Again, some math would compute how many days or weeks it would take to do something with all that data.
Oh, I forgot about the overhead that you might incur to get the index(es) built. Are you using SSDs?
add a comment |
How fast is the network connection? Do some math -- 30TB through a single pipe will take how many days? That's just to get the data started. Then redo the calculation based on how fast the data grows.
There is some amount of overhead; I guestimate that the initial 30TB would take a few weeks. You have not provided numbers for how much traffic per hour in steady state. You can estimate that by watching the size of the binlogs on a representative server, then multiply by 20.
Once you have the 30TB on a single server, have you figured out what you can do with it? Again, some math would compute how many days or weeks it would take to do something with all that data.
Oh, I forgot about the overhead that you might incur to get the index(es) built. Are you using SSDs?
add a comment |
How fast is the network connection? Do some math -- 30TB through a single pipe will take how many days? That's just to get the data started. Then redo the calculation based on how fast the data grows.
There is some amount of overhead; I guestimate that the initial 30TB would take a few weeks. You have not provided numbers for how much traffic per hour in steady state. You can estimate that by watching the size of the binlogs on a representative server, then multiply by 20.
Once you have the 30TB on a single server, have you figured out what you can do with it? Again, some math would compute how many days or weeks it would take to do something with all that data.
Oh, I forgot about the overhead that you might incur to get the index(es) built. Are you using SSDs?
How fast is the network connection? Do some math -- 30TB through a single pipe will take how many days? That's just to get the data started. Then redo the calculation based on how fast the data grows.
There is some amount of overhead; I guestimate that the initial 30TB would take a few weeks. You have not provided numbers for how much traffic per hour in steady state. You can estimate that by watching the size of the binlogs on a representative server, then multiply by 20.
Once you have the 30TB on a single server, have you figured out what you can do with it? Again, some math would compute how many days or weeks it would take to do something with all that data.
Oh, I forgot about the overhead that you might incur to get the index(es) built. Are you using SSDs?
answered May 25 '17 at 5:47
Rick JamesRick James
43.4k22259
43.4k22259
add a comment |
add a comment |
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f172369%2fis-it-possible-today-to-replicate-30-tb-from-multiple-databases-to-postgresql-cl%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Postgres 9.1 is not really current. It's out of support since 2016, September: Versioning policy
– ypercubeᵀᴹ
Apr 30 '17 at 15:55
Easily done if you refactor. 30k tables smells of bad design. Large well indexed tables scale
– Philᵀᴹ
Apr 30 '17 at 17:30
2
Sounds doable, but not really Stack Overflow material. More postgresql.org/support/professional_support material. (Disclaimer, I work for one of the listed companies).
– Craig Ringer
May 1 '17 at 1:34