yugabyte-db | cloud native distributed SQL database | Database library
kandi X-RAY | yugabyte-db Summary
kandi X-RAY | yugabyte-db Summary
YugabyteDB is a high-performance, cloud-native distributed SQL database that aims to support all PostgreSQL features. It is best to fit for cloud-native OLTP (i.e. real-time, business-critical) applications that need absolute data correctness and require at least one of the following: scalability, high tolerance to failures, or globally-distributed deployments.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of yugabyte-db
yugabyte-db Key Features
yugabyte-db Examples and Code Snippets
Community Discussions
Trending Discussions on yugabyte-db
QUESTION
yugabyte cluster has 2 regions, 3 AZs, 6 node architecture.
4 nodes in central region, 2 nodes in east region
...ANSWER
Answered 2022-Jan-27 at 09:41How can a client driver know, which tablet server to send the request?
The driver periodically queries this table:
QUESTION
[Question posted by a user on YugabyteDB Community Slack]
After this commit: [7813] [YSQL] YSQL dump should always include HASH/ASC/DESC modifier for indexes/primary-key.
This makes the ysql_dump
unrestorable in PostgreSQL.
Is there a workaround? I really need to restore a YugabyteDB dump to PostgreSQL instance.
ANSWER
Answered 2022-Jan-14 at 13:50A simple workaround is to make 2 dumps. The first one is just for the schema in text format.
Try importing it in PostgreSQL, see the errors and you can easily fix the DDL queries manually by removing HASH or special keywords that YugabyteDB uses.
Then take another dump, but this time just for the data which should be able to be imported in PostgreSQL.
QUESTION
[Question posted by a user on YugabyteDB Community Slack]
I'm poking around the mem_tracker code and I have found this comment: https://github.com/yugabyte/yugabyte-db/blob/v2.9.1/src/yb/util/mem_tracker.cc#L266
...ANSWER
Answered 2021-Dec-27 at 08:48Those are defaults and can be overwritten by the default_memory_limit_to_ram_ratio=0.1
flag. The idea is that if there's a master and tserver on the same node, we allow 10% to master, 85% to tserver (and remains 5% to system + PostgreSQL work_mem + filesystem buffers).
If you have a node that runs only the master, then clearly this should be changed. But usually, masters are started on the same nodes as tservers.
QUESTION
From the encryption at rest design document in Github, only the Universe Keys are rotated while the data keys remain unchanged for the lifetime of the data file.
However, the Yugabyte docs mention that "Old data will remain unencrypted, or encrypted, with an older key, until compaction churn triggers a re-encryption with the new key.".
Does this mean that the data keys implicitly get rotated when doing compaction?
And we can force this compaction (and data key rotation) by triggering a manual compaction via the yb-admin tool?
ANSWER
Answered 2021-Jul-30 at 06:39Each data file contains a reference to the key id of the master side key used to encrypt its file-level data key, so technically even after a master key rotation we may have older sst files which reference the old key. So if you want no older data files to reference the old key after a rotation, you will have to do a manual compaction.
QUESTION
Following, How to capture data change in yugabyte db? to publish the change logs.
It works properly. But, yb-connector.jar is not resuming the publishing change data logs, after restarting yugabyte db.
Commands Executed:
...ANSWER
Answered 2020-Jan-31 at 13:30This isn't yet supported. Can you create an issue on github https://github.com/yugabyte/yugabyte-db/issues ?
QUESTION
I am trying install yugabyte-2.0.10.0:
a) environment:
...ANSWER
Answered 2020-Jan-10 at 23:52We are trying to reproduce this internally and will get back to you. In the meanwhile, could you please check the tserver.err
file and the tserver.INFO
logs (how to find yb-ctl tserver logs instructions) to see if anything bad is happening? Feels like the tservers are not up and running.
QUESTION
Objective: To create user with password, drop roles and database with ownership in yugabyte
Commands Executed:
...ANSWER
Answered 2020-Jan-21 at 09:18Download the db:
QUESTION
It is understood that yugabyte creates hash partitioned tables by default.
Please guide me in creating range partioned, date partitioned, geo partioned tables in yugabyte-db with multiple tablets.
...ANSWER
Answered 2020-Jan-13 at 09:03Hash partitioned table is specified as
CREATE TABLE sample(k1 int, k2 int, PRIMARY KEY (k1, k2));
Setting the first column of the primary key as ASC/DESC will use range partitioning like:
CREATE TABLE sample(k1 int, k2 int, PRIMARY KEY (k1 ASC, k2 DESC));
Docs page for more info: https://docs.yugabyte.com/latest/api/ysql/commands/ddl_create_table/
Geo partitioned tables are not yet possible. You can subscribe to this issue: https://github.com/yugabyte/yugabyte-db/issues/1958
QUESTION
I am using yugabyte-db-1.3.0 and am trying to run yugabyte e-commerce example application, yugastore locally on CentOS7 by following instructions in its README.md, as follows:
...ANSWER
Answered 2020-Jan-10 at 15:33You are using a very old version of YugabyteDB. 2.0.10 is latest as of Jan 9 2020.
And looks like you have a path mismatch.Can you verify that the files are there and the build finished correctly ?
Download & install (https://download.yugabyte.com)the db:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install yugabyte-db
Install YugabyteDB
Create a local cluster
Start with Yugabyte Cloud
Connect and try out SQL commands
Build an app using a PostgreSQL-compatible driver or ORM.
Try running a real-world demo application: Microservices-oriented e-commerce app Streaming IoT app with Kafka and Spark Streaming
YugabyteDB supports several languages and client drivers. Below is a brief list.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page